The author completely misunderstands the “main()” method of a Java class. The “main()” method represents the static entry point of an executable component, just as it does in C and C++. A Java class will compile fine without a “main()” method. Only a directly executable component such as an executable “jar” file requires the presence of a class with a “main()” method. The vast majority of Java classes do not contain a “main()” method.