The fact about Java is that it does not support the multiple inheritance.
But I have a question that the base class of all java classes is Object.
Now we have two classes : Class A and Class B. B is inherited from A then the Base class of B would be the Object and A , so here, the multiple inheritance took place.
Anyone will please help me to clear my doubt?
class
B
inherits from classA
which in turn inherits fromObject
.Object
is at top of the inheritance hierarchy. This is multi level inheritance , not multiple inheritance.