Domanda di colloquio di BlackRock

why multiple inheritance is not supported in java ?

Risposta di colloquio

Anonimo

30 mag 2016

To avoid any ambiguity ,say we have 2 classes both having same method name,this is extended by a class,so methods of parent class having same name would be overridden,at run time there would be ambiguity ,which method to execute.Hence to avoid that Multiple inheritance is not allowed