These two facts in java
Fact 1
“Every class in java by default extends the java meta class Object”
and
Fact
“Every class in java by default extends the java meta class Object” //fact1
Every Class extends Object class, only if they don't extend any other class directly.
If a class Test extends another Sample class, then Test don't extends Object class directly, but, inheriting the Object class behaviors through super class Sample, which directly extends Object class.