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
Why heap memory is called heap?
What is the difference between ArrayList and Vector? which one is better in Java
Difference between final and effectively final ? Why is effectively final even required ?
What is the difference between overriding and overloading in OOPS.
What are controls and their different types in awt?
Which is best ide for java?
What are drawbacks of singleton class?
What are synchronized methods and synchronized statements in java programming?
How does java enable high performance?
What is polymorphism in java? What are the kinds of polymorphism?
How objects are stored in java?
What are the different approaches to implement a function to generate a random number?
What does s mean in regex?
Are arrays passed by reference in java?
What is immutable class in java?