=======================================
public class A{
int i;
A(int i1){
i = i1;
}
protected void finalize(){
System.out.println("I am " + i + " Object");
}
public static void main(String[] s){
new A(1);
System.gc();
new A(2);
System.gc();
new A(3);
System.gc();
new A(4);
System.gc();
new A(5);
System.gc();
new A(6);
System.gc();
A a = new A();
B b = a;
}
}