Inheritance is transitive. You extend the API class, and the API class itself extends Object. This way you indirectly extend Object. In short, if A continues to B and B continues to C, then A continues to C.
This is not multiple inheritance. The Inheritance Chain, if you like, maybe as long as you want it. But, in the end, in the whole object there is an object at the end.
Real multiple inheritance will immediately extend to two unrelated classes. You cannot do this in Java.
source share