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

Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on vasan2211@gmail.com once u appear for interview

2856


What is logical variable?

516


What is data object example?

535


What Is Composition?

586


Is 0 true or is 1 true?

519






How many types of array are there?

551


What are the steps involved to write rmi based programs?

570


Where are register variables stored?

593


What is the latest version of java?

587


Explain illegalmonitorstateexception and when it will be thrown?

626


How to check if a list is sorted in java?

590


What is treeset in java?

547


What is a default constraint?

618


How do I get a substring?

529


What are different access specifiers in java? Explain

629