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
وراثت کے مطالعہ کو کیا کہتے ہیں؟
- Genealogy
- Genetics
- Gynecology
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
آنکھ کے اس حصے کو پہچانیں جو آنکھ کے اندر جانے والی روشنی کی مقدار کو کنٹرول کرتا ہے؟
- Cornea
- Iris
- Pupil
- Retina
اس سوال کو وضاحت کے ساتھ پڑھیں
ہیموگلوبن کا بنیادی جزو کونسا ہے؟
- Calcium
- Iron
- Chlorine
- Copper
اس سوال کو وضاحت کے ساتھ پڑھیں
دماغ کا کون سا حصہ جسمانی توازن اور حرکات میں درستگی برقرار رکھنے میں مدد دیتا ہے؟
- Cerebrum
- Cerebellum
- Thalamus
- Medulla oblongata
اس سوال کو وضاحت کے ساتھ پڑھیں
انسولین جسم کے کس عضو سے تیار ہوتی ہے؟
- Liver
- Pancreas
- Kidney
- Brain