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
What is an immutable class? How to create an immutable class?
What does it mean to flush a file?
What is a programming object?
What is a blocking method in Java?
What is a for loop in java?
Can a private method be declared as static?
Can we execute java program without main method?
What are internal variables?
What happens when heap memory is full?
How many bytes are a float?
What is externalizable?
How to make a read-only class in java?
Can we create constructor in abstract class ?
What is the difference between stringbuffer and stringbuilder class?
What is ph and buffers?