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

What is an example of a conditional statement?

571


Difference between comparator and comparable in java?

624


What is meant by class loader? How many types are there? When will we use them?

516


Can an object be null?

553


What are wrapped classes in java programming?

591






Can anonymous class have constructor?

552


What lambda means?

552


How can u increase the heap size in the memory?

558


Why hashset is used in java?

540


What does java stand for?

566


Is java a prime method?

555


What do you understand by the term singleton?

584


What is natural ordering in java?

536


Is it possible for a yielded thread to get chance for its execution again?

516


What do you understand by synchronization?

599