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 data and its types?

608


What is the += operator called?

608


Why are the destructors for base class and derived class called in reverse order when the program exits

1747


Can a static class have a constructor?

560


What is the difference between the prefix and postfix forms of the ++ operator?

593






Why string objects are immutable in java?

596


how to write a server program and sending the mails to the server using smtp protocol please help me

1581


What are the advantages of packages in java?

602


What is a wrapper method?

566


What is an exception in java?

690


What is meant by inheritance and what are its advantages?

618


Is math class static in java?

649


Why do we use regex?

594


Why is a singleton bad?

594


Can you sort a list in java?

567