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

How many bytes is a unicode character?

544


Garbage collection in java?

636


Is 0 an irrational number?

632


Where are register variables stored?

628


What is the tradeoff between using an unordered array versus an ordered array?

703






What is thread start?

551


Is java an ide?

565


What is difference between length and length() method in java ?

595


What about main() method in java ?

601


What is run time allocation?

612


Will set allow duplicates in java?

540


How do you implement polymorphism in our day to day life?

2800


What do you mean by data type?

582


What is the use of optional ?

605


Why do we need singleton class?

581