Why method overloading and method overriding required in java?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain garbage collection in java?

729


how to run ecllipse with jettyserver for windows environment using batch file

1694


Explain super keyword in java.

812


What's a method in programming?

735


What is hashtable and explain features of hashtable?

752


How do you reverse a string in java without using string buffer?

792


What will happen if a thrown exception is not handled?

742


How do you remove an object from an arraylist in java?

645


Is java map thread safe?

692


What is java instanceof operator?

776


What is break and continue statement?

781


What is the purpose of the system class in java?

748


Explain access specifiers?

880


What is lambda expression in java?

707


How large is a boolean?

749