When the child class extends from more than one superclass, it is known as multiple inheritance. However, Java does not support multiple inheritance.
To achieve multiple inheritance in Java, we must use the interface.
Example: Multiple Inheritance in Java
Output
Java can be used as backend language. Java can also be used as frontend.
In the above example, we have created an interface named Backend and a class named Frontend. The class Language extends the Frontend class and implements the Backend interface.
Here, the Language class is inheriting the property of both Backend and Frontend. Hence, we can say it is an example of multiple inheritance.