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 |
What is 'finally' method in Exceptions?
How do you avoid global variables?
Explain treeset?
What is the difference between array and array list in java?
What are different types of access modifiers?
What is empty string literal in java?
Can a static block throw exception?
When is the finalize() called? What is the purpose of finalization?
What are advantages and disadvantages of OOPs?
what is mean by String and StringBuffer? What is mean by Methooverriding and Overloading?
What is the maximum size of array in java?
Which collection is best for sorting in java?