package test; public class Test{ static int i=0; public Test(){ i++; } public static void main(String[]agrs) { Test a=new Test(); Test b=new Test(); Test c=new Test(); System.out.println(i); } }
package test; public class Test{ static int i=0; public Test(){ i++; } public static void main(String[]agrs) { Test a=new Test(); Test b=new Test(); Test c=new Test(); System.out.println(i); } }