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

Is c better than java?

539


What is numeric function?

535


What is the difference between == and === javascript?

567


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

539


Why are global variables used?

497






Can we create object of static class?

524


How do you create a bulleted list?

557


What do you mean by Function Overloading in java?

622


What is javac_g?

587


Who found java?

547


What is the basic of java?

566


What is the difference between choice and list?

588


Is there a sort function in java?

573


Can we call a non-static method from inside a static method?

555


What is a blocking method in Java?

597