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 is the difference between heap memory and stack memory?
What is an infinite loop? How infinite loop is declared?
What is the purpose of stub and skeleton?
What is the use of bufferedreader?
What is sortedset in java?
Explain the public class modifier?
What do you mean by ternary operator in java?
What is class level lock ?
Can we change the scope of the overridden method in the subclass?
How many arguments can a method have java?
What is the main functionality of the remote reference layer?
Can we make main() thread as daemon?
How many java versions are there?
What are wrapper classes in java?
Is alive and join method in java?