What is the exact use of interface in real time scenario? some people says that interface provides multiple inheritance. Is it true? In such a case how can we say that java doesn't supports multiple inheritance
Through interface, we can achieve the multiple inheritance.
Java does not support multiple inheritance directly. Actually, 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.
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.