摘要
垃圾回收机制是JAVA的主要特性之一,在对垃圾回收机制进行概述之后,本文从"失去引用"和"离开作用域"这两个角度分析了JAVA程序中的对象在何种条件下满足垃圾回收的要求。最后,本文简要介绍了垃圾回收机制的两个特性。
The mechanism of garbage collection is one of the major characteristics of JAVA. This paper makes a summary of the mechanism. How an object become eligible for garbage collection is analyzed in two points of view: losing reference and getting away the action field. This paper briefly introduces two characteristics of the mechanism.