What is the Use of Run Time Polymorphism in Java ?

During the run time the behavior of an Object can change based on its run time state. Due to this run time polymorphism is introduced in Java. If you override a method in a child class, then you are providing run time polymorphism. Nothing will happen at the compile time. But at the run time, JVM decides which method will be called based on the class of the Object.



You May Interest

What is the Different Type of Tag Library Groups in JSTL ?

How Can Be Read Data From a Form in a JSP ?

Can We Use Thread.sleep Method For Real-time Processing in Java ?

What is the Reason For Overriding equals Method in Java ?

What are the Different Types of Classloaders in Java ?