摘要:
首先看一段程序:class RubbishRelease {public void finalize() { System.out.println("the Object is going...");}public static void main(String[] args) { new RubbishRelease(); new RubbishRelease(); new RubbishRelease(); System.gc(); System.out.println("The program is over!");}}当我们运行以上程序段后,可以 阅读全文