Phantom Reference 虚引用 ; 幽灵引用 ; 幻象引用
Weak and soft references both extend the abstract reference class (as do phantom references, which will be discussed in a future article).
弱引用和软引用都扩展了抽象的reference类(虚引用(phantom references)也一样,这将在以后的文章中介绍)。
Phantomly reachable: an object that is not strongly, softly, or weakly reachable, has been finalized, and can be accessed through a phantom reference.
虚可及对象(phantomly reachable):不是强可及对象、软可及对象,也不是弱可及对象,已经结束的,可以通过虚引用访问的对象。
Phantom reference has nothing to do with the life cycle of an object.
虚引用和对象的生命周期无关。
应用推荐