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
Explain the importance of finalize() method.
What are sets in java?
Can we use String with switch case?
What is the default value of local and global variables?
What are new features introduced with java 8 ?
What is the covariant return type?
Explain what is Marker interface?
What is difference between string and stringbuffer?
What is procedure writing?
Does java isempty check for null?
What are the different collection views provided by maps?
What does a void function return?
Explain the difference between static and dynamic binding in java?
Describe different states of a thread.
Is java call by value?