Browsed by
Month: May 2012

External garbage collection in java

External garbage collection in java

In java garbage collection is internally implemented. For it, JVM(Java Virtual Machine) uses a Class java.lang.Runtime. The JVM’s heap stores all objects created by an executing Java program. Objects are created by Java’s “new” operator, and memory for new objects is allocated on the heap at runtime. Garbage collection is the process of automatically freeing objects that are no longer referenced by the program. This frees the programmer from having to keep track of when to free allocated memory, thereby…

Read More Read More