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
Can we catch more than one exception in single catch block?
What is size of int in java?
Difference between error and exception
How can you generate random numbers in java?
what is mutual exclusion? : Java thread
what is instanceof operator used in java?
What does nullpointerexception mean?
What do you mean by constructor?
Name some classes present in java.util.regex package.
What are the parts of a method?
Is an array a vector?
What is the maximum length of a url?
What are the 3 types of loops in java?
What is the purpose of garbage collection in java?
How many bits is a float?