Answer Posted / janet
Methods are functions that operate on instances of classes
in which they are defined.Objects can communicate with each
other using methods and can call methods in other
classes.Method definition has four parts. They are name of
the method,type of object or primitive type the method
returns,a list of parameters and the body of the method. A
method's signature is a combination of the first three
parts mentioned above.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What are the files generated after using IDL to java compiler?
What are the elements of java?
What is difference between array and vector?
Does constructor be static?
How to handle a web browser resize operation?
Can we use a switch statement with strings?
What do you mean by inner class in java? Explain
What are the characteristics of java?
Can list be null in java?
In java, what is the difference between method overloading and method overriding?
What is use of set in java?
What is the memory leak in java?
What is the main function in java?
What is a method in coding?
When should a function throw an exception?