class a{static{System.out.println("Hello world");System.exit(0);}}
It also doesn't cut down much on the amount of boilerplate you need.
class a{static{System.out.println("Hello world");System.exit(0);}}