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
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
What is logical variable?
What is data object example?
What Is Composition?
Is 0 true or is 1 true?
How many types of array are there?
What are the steps involved to write rmi based programs?
Where are register variables stored?
What is the latest version of java?
Explain illegalmonitorstateexception and when it will be thrown?
How to check if a list is sorted in java?
What is treeset in java?
What is a default constraint?
How do I get a substring?
What are different access specifiers in java? Explain