by BehindJava

What is Polymorphism in Java

Home » java » What is Polymorphism in Java

In this tutorial, we are going to learn what is polymorphism in java.

In java, We have two types of polymorphism i.e. runtime polymorphism and compile time polymorphism.

Runtime polymorphism can be achieved by method overriding, and it also called as dynamic method dispatch while compile time polymorphism can be achieved by method overloading.

The important topics that must be covered while preparing for a java interview with respect to polymorphism are mentioned below.