🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Inheritance and Polymorphism: all 10 questions

Quiz: Inheritance and Polymorphism · Question 3 of 10

Overriding is an example of:

Overriding is an example of:

  1. A.Compile-time polymorphism
  2. B.Runtime polymorphism
  3. C.Encapsulation
  4. D.Abstraction only
Answer & explanation

Correct answer: Runtime polymorphism

The JVM decides which overridden method to run at runtime.

Can you get the rest right without peeking?

Take the timed Quiz: Inheritance and Polymorphism quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →