public class MainClass{ public static void main(String[] argv){ new MyClass(); } } class MyClass{ int x = 20; public MyClass(){ System.out.println(x); } }