explain about method overloading and method overriding with
difficult examples

Answer Posted / bhasker

Method Overloading:
--------------------
Method Overloading is nothing but the method name is
same and the number of parameters and types of parameters
are different.

Method Overriding:
--------------------
Method Overriding is nothing nut the super class
method signatuer we can inherit to the sub class method
signature is shoub be same.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you check if a string is lexicographically in java?

709


What are the 8 data types in java?

735


What is a java list?

809


why java uses class level type casting ?

2421


What is a ?

947


Can we have 2 main methods in java class?

740


What is set and get methods in java?

733


What is a war file?

742


What is strings in java?

784


Is java a super set of javascript?

817


Do I need java on my computer?

729


What are the important features of Java 10 release?

737


Why volatile is used in java?

736


Does google use java?

736


What is starvation?

916