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 can you say java is object oriented?

583


Explain super keyword in java.

572


When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

602


How to run a JAR file through command prompt?

708


How large is a boolean?

547






Explain about data types?

568


Can we assign the reference to this variable?

533


What does replaceall do in java?

476


What are parameters in a method?

577


What is difference between class and object in java?

521


What is thread life cycle in java?

575


How many bytes is string in java?

599


What is the symbol for space?

557


What is the difference between iterator and enumeration ?

506


Is 0 true or is 1 true?

512