@@ -0,0 +1,657 @@
+package GcDefinition;%0A%0A/**%0A * Created by chenyang on 2017/2/2.%0A */%0Apublic class CanReliveObj %7B%0A    public static CanReliveObj obj;%0A%0A    @Override%0A    protected void finalize() throws Throwable %7B%0A        super.finalize();%0A        System.out.println(%22CanReliveObj finalize called%22);%0A        obj=this;%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return %22I am CanReliveObj%22;%0A    %7D%0A%0A    public static void main(String%5B%5D args) throws InterruptedException%7B%0A        obj=new CanReliveObj();%0A        obj=null;//%E5%8F%AF%E5%A4%8D%E6%B4%BB%0A        System.gc();%0A        Thread.sleep(1000);%0A        if(obj==null)%7B%0A            System.out.println(%22obj %E6%98%AF null%22);%0A        %7D%0A    %7D%0A%7D%0A

update code