I have written a simple class with one static block
class Hello { static { System.out.println(\"Hello\"); System.exit(0); } }
You cannot execute a java program without main method unless otherwise it is an applet or something else. I say your observation on jdks might be wrong