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
I don’t want my class to be inherited by any other class. What should I do?
What do you mean by thread safe?
What is the difference between an object-oriented programming language and object-based programming language?
What is the base class in java from which all classes are derived?
What is integer parseint?
Can bool be null?
Why do we need autoboxing in java?
How do you use compareto?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
What is singleton math?
Can we catch more than one exception in a single catch block?
Define jit compiler?
Which sorting algorithm is in place?
What are the features in java?
Is arraylist ordered?