Java : JAVA Object Oriented Programming

Runtime polymorphism feature in java is , Runtime polymorphism feature in java is

Runtime polymorphism feature in java is

Runtime polymorphism feature in java is
A. method overriding

B. method overloading

C. constructor overloading

D. operator overloading



Correct Answer :

A. method overriding



Explanation
Since in method overriding both the classes(base class and child class) have same method, compile doesn’t figure out which method to call at compile-time. In this case JVM(java virtual machine) decides which method to call at runtime that’s why it is known as runtime or dynamic polymorphism.
CCC Online Test , CCC MCQ Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz career counselling in allahabad Website development Company in Allahabad