explain about method overloading and method overriding with
difficult examples
Answer Posted / andrea
overloading
two or more methods will have same name but different
arguments. it will be in same class.
overriding
two or more methods will have same name and same
number of arguments but in different classes
Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
Write a java program to generate fibonacci series ?
What is hashmap in java?
Are maps ordered java?
What is the effect of keeping a constructor private?
'A class is a template for an object' explain this statement.
Write a java program for binary search?
What is method overriding in java ?
Can we have any other return type than void for main method?
What is object class in java?
Explain the difference between runnable and callable interface in java?
Difference between final and effectively final ? Why is effectively final even required ?
what is thread? : Java thread
what is singleton in java?
What is difference between float and double?
Which programming language is most secure?