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


Please Help Members By Posting Answers For Below Questions

Write a java program to generate fibonacci series ?

575


What is hashmap in java?

573


Are maps ordered java?

513


What is the effect of keeping a constructor private?

475


'A class is a template for an object' explain this statement.

548






Write a java program for binary search?

611


What is method overriding in java ?

665


Can we have any other return type than void for main method?

540


What is object class in java?

505


Explain the difference between runnable and callable interface in java?

589


Difference between final and effectively final ? Why is effectively final even required ?

559


what is thread? : Java thread

560


what is singleton in java?

602


What is difference between float and double?

505


Which programming language is most secure?

535