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.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.