/* test static initializers */ public class mainer { public static void main(String[] args) { foo f = new foo(); f.doit(); System.out.println("done."); } } class foo { static { System.out.println("10"); } static { System.out.println("20"); gostat(); } static inline void gostat() { System.out.println("30"); } public inline foo() { System.out.println("40"); } public inline void doit() { System.out.println("50"); } }