Why method overloading and method overriding required in java?



Why method overloading and method overriding required in java?..

Answer / sonu

function overloading is used to achieve dynamic binding,  and overriding is used to achieve run time polymorphism , dynamic binding .

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Core Java Interview Questions

What does the exclamation mark mean in java?

0 Answers  


What is ‘has a’’ relationship in java?

0 Answers  


What is the difference between I ++ and ++ I in java?

0 Answers  


Is there any limitation of using inheritance?

0 Answers  


How do you do descending order in java?

0 Answers  






What are exceptions

0 Answers   Futures First,


What are the different types of inheritance in java?

0 Answers  


What are non-access modifiers?

2 Answers   Cognizant,


why interfaces are faster than abstract classes?

4 Answers  


What data type is true or false?

0 Answers  


Difference between Hash Table and Hash Map?

10 Answers   Persistent,


What is the use of protected in java?

0 Answers  


Categories