CoreJavaTutorials
Contribute Us | Ask Question |

Polymorphism in Java

Polymorphism is a concept by which we can perform a single action by different ways thats why it is also called as one name many forms. Polymorphism is derived from 2 greek words: poly and morphs. The word "poly" means many and "morphs" means forms. There are two types of polymorphism in java
1.Compile time polymorphism and
2.Runtime polymorphism.
We can perform polymorphism in java by method overloading and method overriding. If you overload static method in java, it is the example of compile time polymorphism. Here, we will focus on runtime polymorphism in java.

For Instance,