← Quiz: Inheritance: all 10 questions
Quiz: Inheritance · Question 1 of 10
Which type of inheritance does Java NOT allow with classes?
Which type of inheritance does Java NOT allow with classes?
- A.Single
- B.Multilevel
- C.Hierarchical
- D.Multiple
Answer & explanation
Correct answer: Multiple
A Java class can extend only one class; multiple inheritance is possible only through interfaces.
Can you get the rest right without peeking?
Take the timed Quiz: Inheritance quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →