Which type of inheritance is not supported by Java:

PPSC 5 Years Past Papers Subject Wise (Solved with Details) / All - Multiple-choice practice

  1. A. None of these
  2. B. Single inheritance
  3. C. Multilevel inheritance
  4. D. Multiple inheritance

Correct answer

Multiple inheritance

Explanation

Explanation In Java, a class cannot inherit from more than one superclass to avoid ambiguity. However, it does support single inheritance, multilevel inheritance, and hierarchical inheritance . To achieve some aspects of multiple inheritance, Java u ses interfaces, allowing a class to implement multiple interfaces.

Continue with All MCQs, explore all PPSC 5 Years Past Papers Subject Wise (Solved with Details) topics, or try the All practice quiz.

More All questions

Found an error? Report a correction with this page URL and a supporting source.