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
Which is fastest collection in java?
What is singleton math?
What is method with example?
What happens if a constructor is declared private?
What are untrusted applets?
When will you define a method as static?
What is the difference between throw and throws in java?
Which is bigger float or double?
FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?
Explain the difference between string, stringbuffer and stringbuilder in java?
Difference between throw and throws?
What is a substring of a string?
How can we pass argument to a function by reference instead of pass by value?
What happens if we override only equals?
What do you understand by the term polymorphism?