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
Can we write class inside a class in java?
How would you format a date in java? I.e. In the ddmmyyy format?
What environment variables are required to be set on a machine in order to run Java programs?
Differentiate between nested and inner class in java.
What does super keyword do?
How many bits is a double?
what are the high-level thread states? : Java thread
What is class array in java?
How to make a class or a bean serializable?
Is java developer a good career?
What is singleton service?
In java how do we copy objects?
How do you sort a string in java?
What if static is removed from main method?
Can we have try block without catch block?