Java supports only Single, Multilevel, and Hierarchical types of inheritance . Java does not support Multiple and Hybrid inheritance.
Read moreWhich inheritance is not supported in Java and why?
The reason behind this is to prevent ambiguity. Consider a case where class B extends class A and Class C and both class A and C have the same method display(). Now java compiler cannot decide, which display method it should inherit. To prevent such situation, multiple inheritances is not allowed in java.
Read moreWhat are the 6 types of inheritance in Java?
Here are the different types of inheritance in Java:
Read more