Question OOP-INH-0068
HardWhy does Java allow multiple inheritance of interfaces but not of classes?
- A.
It is a JVM bug
- B.
Interfaces are faster
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Inheritance question
Why does Java allow multiple inheritance of interfaces but not of classes?
It is a JVM bug
Interfaces are faster
Sign up free to see the answer and a step-by-step explanation.
Classes are too large
Interfaces (traditionally) carry no state, so there is no ambiguity about which fields to inherit