Which type of inheritance is not supported by Java:
PPSC 5 Years Past Papers Subject Wise (Solved with Details) / All - Multiple-choice practice
- A. None of these
- B. Single inheritance
- C. Multilevel inheritance
- 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
- زیادہ فائلز اکٹھی بھیجنے کے لیے کس کا استعمال ہوتا ہے؟
- سترہ سو تئیسء میں آگرہ میں کون سے شاعر پیدا ہوئے ؟
- When Pakistan won the World Hockey Cup for the Second (2nd) time?
- How many days Hazrat Muhammad (SAW) stayed at Ghar-e-Saur?
- Grapes cultivation is called _____?
- which key is used for help in MS excel------?
Found an error? Report a correction with this page URL and a supporting source.