Explain method overloading and overriding?

Answer Posted / janet

Method overloading: when a method in a class having the
same method name with different arguments is said to be
method overloading.
Method Overridding: when a method in a class having the
same method name with same arguments is said to be method
overridding.

Is This Answer Correct ?    21 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a singleton class in Java?

501


How do you square a number?

572


Why is java not 100% pure oops?

606


What is the main function in java?

521


what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread

672






What is skeleton and stub? What is the purpose of those?

535


What do you mean by of string::valueof expression in java 8?

533


Can we declare the static variables and methods in an abstract class?

541


What are peerless components in java programming?

574


What is abstract class constructor called?

557


What is a substring of a string?

557


What does %d do in java?

572


How to print an arraylist in java?

489


What does the three dot emoji mean?

574


How do you declare a destructor in java?

496