Answer Posted / navieen
Polymorphism means the ability of a single variable of a
given type to be used to reference objects of
different types, and automatically call the method that is
specific to the type of object the variable references.
The benefit of polymorphism is that it is very easy to add
new classes of derived objects without breaking the calling
code that uses the polymorphic classes or interfaces.
When you send a message to an object even though you
don’t know what specific type it is, and the right thing
happens, that’s called polymorphism. The process used by
object-oriented programming languages to implement
polymorphism is called dynamic binding.
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
How do you check if a number is a perfect square?
Which is the best sorting technique in java?
Difference between a process and a program?
Can we write any code after throw statement?
Can we have static methods in an interface?
How many bytes is 255 characters?
What is incompatible types in java?
What is java lang string?
What happens when a thread cannot acquire a lock on an object in java programming?
What is the SimpleTimeZone class?
Can you give names of Container classes?
what do you mean by marker interface in java?
What is keyword auto for?
Can we clone singleton class in java?
What is object cloning in Java?