Difference between overloading and Overriding. <Giving a
confusing example to test the concept.>
(also asked in PA Consultancy Group,iflex,Value
chain,IBM,CTS,Accenture, Tarang>
Answer Posted / esha prasad
Over loading is polymorphism implementation in same class,
where two or more methods can share same name differing in
parameters passed.
Overriding is polymorphism implementation in different
classes having parent child relationship and the
funtionality in parent class is over shadowed by the
funtionality in subclass.
| Is This Answer Correct ? | 72 Yes | 14 No |
Post New Answer View All Answers
What are 3 boolean operators?
What is subsequence of a string?
What is the use of isempty in java?
What is static in java?
What is sleep method?
Can a top level class be private or protected?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
How we can declare a static variable?
What does indexof return in java?
What is the difference between static and non-static variables in java programming?
Can we sort arraylist in java?
What is a java list?
Explain about doubly linked list
What are the differences between throw and throws?
What is the purpose of the runtime class in java programming?