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 perform linear search in java?
What is the concept of multithreading?
What do you mean by jjs in java8?
Is java 9 released?
When should you use arraylist and when should you use linkedlist?
What are the two main uses of volatile in Java?
What is update method called?
Difference between static synchronization vs. Instance synchronization?
Define how objects are stored in java?
What is the difference between a switch statement and an if statement?
How to perform merge sort in java?
What does int argc char * argv [] mean?
Is array an object in java?
What are the Main functions of Java?
When will you define a method as static?