Pregunta de entrevista de N2N Global

Q: Why multiple inheritances are not supported in Java?

Respuesta de la entrevista

Anónimo

6 mar 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.