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 is number data type?
How big is a 64 bit float?
What are methods and how are they defined?
What is the purpose of file class?
Are static members inherited to sub classes?
What is a class component?
Can java list contain duplicates?
What is a predicate method?
What is classname class in java?
What is type safety in java?
What is the order of arraylist in java?
What are the six ways to use this keyword?
Have you ever used hashtable and dictionary?
Explain the difference between throw and throws in java?
What is printwriter in java?