🎙 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 5 of 10

How many classes can a Java class directly extend?

How many classes can a Java class directly extend?

  1. A.One
  2. B.Two
  3. C.Unlimited
  4. D.None
Answer & explanation

Correct answer: One

Java allows single inheritance of classes (but many interfaces).

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 →