Which type of inheritance is not supported by Java:
- Single inheritance
- Multiple inheritance
- Multilevel inheritance
- None of these
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 uses interfaces, allowing a class to implement multiple interfaces.
Related MCQs
سیل کی توانائی کی کرنسی کونسی ہے؟
- ATP
- AMP
- ADP
- None of the above
اس سوال کو وضاحت کے ساتھ پڑھیں
انسانی جسم کا معمول کا درجہ حرارت 98.6 ڈگری فارن ہائیٹ کتنے ڈگری سیلسیس کے برابر ہے؟
- 55°C
- 42°C
- 37°C
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
انسانی جسم کا سب سے بڑا عضو کونسا ہے؟
- Skin
- Digestive tract
- Liver
- Brain
اس سوال کو وضاحت کے ساتھ پڑھیں
اینٹی جن کیا ہوتا ہے؟
- A substance that triggers an immune response.
- A substance that produces energy.
- A substance that carries oxygen.
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
کون سے خلیات بنیادی طور پر اینٹی باڈیز پیدا کرنے کے ذمہ دار ہوتے ہیں؟
- Plasma cells
- Neutrophils
- Natural killer cells
- Erythrocytes