Hello sivasayanth
Java does not support multiple inheritance. So, you cannot create a child that inherits members from two parents. The solution for this is interfaces. Interfaces allow us to create classes that have related members or attributes to other classes weather they are related by inheritance or not. Let's take an example:
Let's say that we have a class Car and two interfaces Stoppable and Turnable. Also, we have two classes Stop and Turn. If you want your car to be able to stop and turn, you must let the Car class implement the Stoppable and Turnable interfaces. It is not possible to create a class, Car, that is extended from both Stop and Turn.
I hope this helped.
