Distinguish method overloading and method overriding
Answer Posted / sarbbottam bandyopadhyay
For method overloading the return type have to be same. Only the number of argument or type of argument or both will be different. But return type have to be the same.
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What two classes are used to read data only?
What are recursive functions? Give some examples?
Is there a sort function in java?
Can we have try without catch block?
What does the “static” keyword mean?
What are the Main functions of Java?
Explain about transient variables in java?
What is the instance of an object?
What do you mean by inner class in java?
explain multi-threading in java?
Implement a stack with push (), pop() and min() in O(1) time.
Why do we need data structure in java?
Explain covariant method overriding in java.
Does every java program need a main?
What is an example of declaration?