强引用(Strong references)是使用最普遍的引用。如果一个对象具有强引用,那么垃圾回收器绝不会回收它,即便内存不足JVM也会选择抛出OutOfMemoryErro,强行...
基于28个网页-相关网页
Note that each object reference, obj, rq, and wr, are all strong references.
请注意,每个对象引用(obj、rq及wr)都是强引用。
After the trace, the collector identifies the softly reachable objects — these objects for which no strong references exist but soft references do.
在跟踪之后,垃圾收集器就识别软可及的对象——这些对象上除了软引用外,没有任何强引用。
Before the reference classes were introduced, only strong references were available. For example, the following line of code shows a strong reference, obj.
在引入引用类之前,我们只能使用强引用(strong reference)。
应用推荐