Class Definition Java Tutorial

Static members are not tied to class instances.
Static members can be called without having an instance.
The out field in java.lang.System is static.

public class MainClass {
  public static void main() {
    System.out.println("123");
  }
}
the method main(the entry point to a class) is static because it must be called before any object is created.