Polymorphism is one of the four fundamental concepts (Encapsulation, Inheritance, Polymorphism, and Abstraction) in Java OOP, it allows methods of different objects have the same, but do different task. There are two types of polymorphism in Java: compile time polymorphism (method overloading) and runtime polymorphism (method overriding).

Both compile time polymorphism and runtime polymorphism are discussed in the Method overriding and Dynamic Method Dispatch (Runtime Polymorphism).


Back to parent page: Java Standard Edition (Java SE) and Java Programming

Web_and_App_Development Programming_Languages Java OOP Polymorphism Compile_Time_Polymorphism Runtime_Polymorphism Dynamic_Method_Dispatch Method_Overriding Method_Overloading

Reference: