|
Java™ by example!
|
|
|
|
Become a member to observe this category
|
|
Garbage Collector
As opposed to C/C++ where you spend precious time taking care of memory management, Java does it for you. Any data that is not referenced anymore will automatically be given back to the free memory heap. The Java Garbage Collector (GC) runs in its own thread, you cannot be sure _when_ it will reclaim the unreferenced memory. You could force it to do its job by invoking System.gc() but this is just a hint to the GC thread.
Featured Books
Subcategories
Questions & Answers
= answered, = unanswered
General:
How do I force garbage collection?
How does the garbage collector work?
Further Information (sorted alphabetically)
Articles:
Related Links:
Related Books:
|
|
|
|
|