If a class does not extend any class, the compiler builds a class that extends directly from Object.
publicclass MainClass {
publicstaticvoid main(String[] argv) {
System.out.println();
}
}
class MyClass {
}
class MyAnotherClass extends Object {
}
8.1.Object
8.1.1.
The Object class is the ultimate ancestor of all Java classes.