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
Explain 5 io best practices?
How do you start a thread?
Using callable statement how can you pass out parameters, explain with example?
Define a package.
What is a boolean expression in java?
Does list maintain insertion order java?
Difference between operator overloading and function overloading
Which sort is best in java?
What is java argument list?
Can you explain the private protected field modifier?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
Explain naming conventions for packages?
How do you take thread dump in java?
Explain the difference between transient and volatile in java?
How to create an immutable class?