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
What is a wrapper method?
what is the difference between thread and runnable types? : Java thread
What is oop in java?
What do you mean by platform independence of Java?
What is bool mean?
Explain the difference between extends thread vs implements runnable in java?
Explain different forms of polymorphism?
What are recursive functions? Give some examples?
What does index mean in java?
What is consumer in java?
When should I use singleton?
Why does java not support operator overloading?
What are wrapped classes in java programming?
What restrictions are placed on method overriding in java programming?
How to perform merge sort in java?