We say that java follows a single inheritance model i.e. a Java class can extend only one class at max. and then say that every java class is inherited from Object class.
Suppose there are two classes A and B. Both A and B extend from Object. Now suppose A extends B. Doesn’t it imply that A has multiple inheritence (A is inheriting from both B and Class Object)?
Look at the difference between transitive inheritance (C inherits directly from B and transitively from A):
and multiple inheritance (C inheriting from both A and B):
Everything is just added on, except methods with the same signature, which are overridden. Even variables declared with the same name are added on, they’re just said to be “hidden” but can still be accessed using casting, or the super keyword if it’s the immediate parent.