Pergunta de entrevista da empresa N2N Global

Q: Why multiple inheritances are not supported in Java?

Resposta da entrevista

Sigiloso

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