public class No_4 {
public static void main(String[] args) {
MyClass m = new MyClass();
m = null;
System. gc();
MyClass. o = null ;
System. gc();
}
}
class MyClass {
public static MyClass o;
protected void finalize() throws Throwable {
System. out.println("finalize");
o = this ;
}
}