定义:从自动与受控维度区分的一种程序性知识,是适用于一般领域的、受意识控制的程序性知识。
请注意该方法如何用do - while循环来处理队列中可能存在的弱引用。
Notice how this method accounts for possible weak references in the queue with the do-while loop.
如果有一种方法可以在弱引用的referent被垃圾收集时发出通知就好了,这就是引用队列的作用。
It would be nice if there was a way to be notified when the referent of a weak reference is garbage collected, and that is what reference queues are for.
我们将要学习用不用的方法来表达不同意,语气从弱到强。
We’ll learn different ways to disagree, from polite to strong.
应用推荐