对象的释放-java面向对象特征

对象的释放将对象从内存中清除内存的管理(枯燥、容易出错)垃圾回收(Garbage Collection)垃圾搜集器(Garbage Collector)周期性地释放不再被引用的对象,自动完成手动完成,System.gc(); public static void gc() -- Runs the garbage collector. The Java platform allows you to create as many objects as you want (limited, of course, by what your system can handle), and you don't have to worry about destroying them. The Java runtime environment deletes objects when it determines that they are no longer being used. This process is called garbage collection.
ppt 文件大小:772KB