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
Is java still relevant?
Can we inherit inner class?
What is the difference between int and integer in java?
What is garbage collection? What is the process that is responsible for doing that in java?
How are java objects passed to a method and what are native methods?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
Describe the process as to how substring() methodology mechanisms in java.
What are the different ways to handle exceptions?
how to deploy apache tomcat server to weblogic server in java
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
How do generics work?
What is listnode in java?
How do I get a substring?
What is final keyword in java?
What is the difference between checked exception and unchecked exception?