垃圾回收与强引用,软引用,弱引用,幻引用的关系
摘要:
Java 2 平台引入了 java.lang.ref 包,其中包括的类可以让您引用对象,而不将它们留在内存中。这些类还提供了与垃圾收集器(garbage collector)之间有限的交互。Peter Haggar 在本文中分析了 SoftReference、WeakReference 和 PhantomReference 类的功能和行为,并就这些类的使用给出了一些编程风格上的建议。 当在 Jav... 阅读全文
posted @ 2009-09-27 17:13 ATAK 阅读(1251) 评论(0) 推荐(0) 编辑