what is difference between method overloading & method
overridding with example?
Answer Posted / tamilvanan
overloading:
method overloading means method name is same and different
parameter ie different signature.. and overloading method
are present in same class
for eg ,
let us consider show() is a method
1.show(int a)
2.show(int a,int b)
overriding:
method overriding means method name is same and
parameter also same. these are present in different levels
of class
for eg,
let us consider show() is a method
1.show(int a)
2.show(int a)
| Is This Answer Correct ? | 34 Yes | 0 No |
Post New Answer View All Answers
How to print nodes of a Binary tree?
What is append function?
Convert Binary tree to linked list.
What is the use of volatile in java?
What are void methods?
how to split string in java?
What is class and object in java?
What is volatile keyword in java
State some advantages of java?
when you will synchronize a piece of your code? : Java thread
Can a class have multiple superclasses?
What is the purpose of a volatile variable?
What is scope & storage allocation of global and extern variables? Explain with an example
What is the hashcode () and equals () used for?
Which of the classes will have more memory allocated?