Why in java the concept of Multiple Inheritance is not used...? why interface has been used...? Clearly explain me with good example?
Java does not support multiple inheritance directly but it supports multiple inheritance through interface.When we extends more than one class, JVM get some abigious problem and will get confused as which method it will take.It creates complexity.Therefore java does not support it directly.
Using Interface, Java can support Multiple Inheritance by implementing multiple interfaces.