class MainClass { static int x = 8; static { x += 2; } public static void main(String args[]) { System.out.println("x = " + x); } static { x /= 2; } }