What is the difference between a method and a procedure?
Answer / Vijay Rana
A method in programming is a function that belongs to an object or class. It has access to all variables, including both private and public ones, within the object or class. A procedure, on the other hand, does not belong to any particular object or class and does not have access to the variables of objects or classes.
| Is This Answer Correct ? | 0 Yes | 0 No |
What happens when I use / and % with a negative numerator?
What is mnemonic code?
HOW TO PRINT A NO IN WORDS USING WHILE LOOP THE NO WILL BE PRINTED WHEN IT WILL BE IN THE RANGE BETWEEN 1 AND 3?
how many types of cloning?
where final and static variable stored?
What access modifiers can be used for variables?
Explain illegalmonitorstateexception and when it will be thrown?
Is array passed by reference in java?
What does substring mean?
what is the significance of listiterator in java?
What is meant by object?
Why is the main method declared static?