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