50,530
社区成员
发帖
与我相关
我的任务
分享
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 ;
}
}