The Object class is the ultimate ancestor of all Java classes. : Object « Utility Classes « SCJP






If a class does not extend any class, the compiler builds a class that extends directly from Object.

public class MainClass {
  public static void 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.
8.1.2.All the methods of Object are inherited by every class.