Posted On: Apr 07, 2020
When one class extends for more than one class, then it is known as multiple inheritance.
No, Java does not support multiple inheritance to prevent the ambiguity that it can cause. The diamond problem is one such problem that can exist in multiple inheritance. The problem persists when the methods exist in both the sub and superclasses. Multiple inheritance can cause different problems like constructor chaining and cast in Java.
Never Miss an Articles from us.