← 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?
- A.One
- B.Two
- C.Unlimited
- 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 →