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 the use of 'super' keyword inside a constructor?
Can each java object keep track of all the threads that want to exclusively access it?
What is stack explain?
What is finally block?
What is string value?
What does math floor () do?
Explain inner classes ?
What is the generic function?
What is meant by data hiding/encapsulation?
Is main a function?
What do you mean by composition in java?
When will we prefer to use set and list in java and why?
Why charat is used in java?
What is the default value of byte datatype in java?
What is the difference between an argument and a parameter?