In Listing 2, the effect of the check on the value argument is negated by the existence of the finalize method.
在清单2中,finalize方法的存在使对value参数的检查变得无效。
When an object with a finalize method becomes unreachable, it is put on a queue to be processed at some later time.
当包含finalize方法的对象变得无法访问时,它会被放入一个将在以后某个时刻处理的队列上。
When the heap object's finalize method is run and its memory freed, the WeakReference object is added to its ReferenceQueue, if it exists.
当heap对象的finalize方法被运行而且该对象占用的内存被释放时,WeakReference对象就被添加到它的Reference Queue(如果后者存在的话)。
应用推荐