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_DevelopmentProgramming_LanguagesJavaOOPPolymorphismCompile_Time_PolymorphismRuntime_PolymorphismDynamic_Method_DispatchMethod_OverridingMethod_Overloading

Reference: