...是Reference的子类,如SoftwareReference强引用:从根通过任意路径到达对象都不存在通过引用对象间接触及软引用(SoftReference):不存在强引用的对象且通过软引用维持的对象引用弱引用(WeakReference):不存在强引用且通过软引用对象维持对象的可触及性虚引...
基于369个网页-相关网页
SoftReference or weak reference 软引用或弱引用
The heap object that had been referenced by the SoftReference is declared finalizable.
SoftReference 引用过的 heap 对象被声明为 finalizable 。
The SoftReference object's referent field is set to null, thereby making it not refer to the heap object any longer.
SoftReference对象的referent域被设置为null,从而使该对象不再引用heap对象。
When the heap object's finalize method is run and its memory freed, the SoftReference object is added to its ReferenceQueue, if it exists.
当heap对象的finalize方法被运行而且该对象占用的内存被释放,S of tReference对象就被添加到它的Reference Queue(如果后者存在的话)。
应用推荐