Search This Blog

Tuesday, February 2, 2010

Java with out Main ()

public class withoutMain {
static {
System.out.println("Hello World!");
System.exit(0); // if you not put here, then error says no main
}
}

No comments:

Hit Counter


View My Stats