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 fundamental datatype?

533


Explain the key functions of data binding?

589


What are the kinds of polymorphism?

617


What are the important features of Java 8 release?

582


What is method reference?

521






What is java’s garbage collected heap?

542


What is the purpose of the strictfp keyword?

616


Difference between concurrent hashmap and hashtable and collections

570


What is java lang string?

552


What does indexof return in java?

543


How do you replace a string in java?

549


What is meant by local variable and instance variable?

604


How we can execute any code even before main method?

555


Explain different types of wrapper classes in java?

603


What is the difference between multitasking and multithreading in Java

728