class Test1 {
int i = 20;
}
public class Test2 {
public static void main(String args[]) {
final Test1 t1 = new Test1();
t1.i = 30;
System.out.println(t1.i);
}
}
Test() {
count++;
}
public static void main(String arr[]) {
Test t1 = new Test();
Test t2 = new Test();
Test t3 = new Test();
System.out.println("Total " + count + " objects created");
}
}