Explain method overloading and overriding?

Answer Posted / chittaranjan

Method overloading: when a method in a class having the
same method name with different number/type of arguments
with the existense of prevoius meaning also is called
method overloading.
Method Overridding: when a method in a class having the
same method name with same number & type of argument(s)
however there mus not be any existense of previous meaning
is said to be method
overridding.

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are primitives objects?

760


How many days will it take to learn java?

685


If an object is garbage collected, can it become reachable again?

750


What are different types of encoding?

807


What does java se mean?

758


Break statement can be used as labels in java?

751


What is functional interface in java example?

747


Why generics are used in java?

760


Can private class be inherited in java?

780


Explain restrictions for using anonymous inner classes?

809


How do weakhashmap works?

823


What is the main use of generics in java?

695


What is an image buffer?

707


What is the use of accept () method in java?

796


Explain the differences between static and dynamic variables?

820