Top
Previous Next
Java's Object Orientation, I/O CS 161 - Java

Garbage Collection

Fundamental to the safety and robustness of Java

All Java Objects are automatically kept track of by the Java Virtual Machine.

When no more live references exist, the object or array memory is made available to be garbage collected.

Makes programming Java a lot easier and less error prone.

Compared to other programming languages that lack Garbage Collection.

Garbage collection in Java happens automatically: the JVM makes unused memory available for later re-use use by the JVM.


Top
Previous Next
jwd