Question d’entretien chez N2N Global

Q: Why multiple inheritances are not supported in Java?

Réponse à la question d'entretien

Utilisateur anonyme

6 mars 2015

Because of diamond pattern, diamond pattern creates ambiguity and make problem for compiler. Anyway java supports multiple inheritances via interfaces. I think more convincing reason for not supporting multiple inheritance is complexity involved in constructor chaining, casting etc rather than diamond.