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 is 'finally' method in Exceptions?

4 Answers  


How do you avoid global variables?

0 Answers  


Explain treeset?

0 Answers  


What is the difference between array and array list in java?

0 Answers  


What are different types of access modifiers?

3 Answers  


What is empty string literal in java?

0 Answers  


Can a static block throw exception?

0 Answers  


When is the finalize() called? What is the purpose of finalization?

0 Answers  


What are advantages and disadvantages of OOPs?

0 Answers   Amdocs,


what is mean by String and StringBuffer? What is mean by Methooverriding and Overloading?

3 Answers   Satyam, STI,


What is the maximum size of array in java?

0 Answers  


Which collection is best for sorting in java?

0 Answers  


Categories