Every Java program requires the presence of at least one class.
Is the above statement always true ?
From the JVM's point of view; yes. From a programmers view point, it can be a Class or an Enum.
public enum AAA {
AAA;
public static void main(final String[] args) {
System.out.println("H");
}
}
EDIT: Even if you have a class with empty main method, there are a lot of core classes which work behind the scene to just run the "empty" class of yours. A list of those classes (around 200 from the java.* package) can be viewed by setting the -verbose:class JVM parameter.