What is the major difference between runtime and compile time polymorphism?
Snippet Code
Rate this page :
[ 0 votes]
The compilation process is known as compile time. After compilation process the application runs it is known as run time. Here, the major difference between runtime and compile time polymorphism in java is below
Compile time Polymorphism:
------------------------------------
Compile time Polymorphism also known as method overloading or early binding.
It means we will declare methods with same name but different signatures.
Run time Polymorphism:
-------------------------------
Run time polymorphism also called as late binding or method overriding or dynamic polymorphism.
It means we will declare methods with same method names with same signatures.