This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Garbage collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Garbage collection" Watch "Garbage collection" New topic

Garbage collection

Chris Bilinski

Joined: Sep 06, 2001
Posts: 9
I'm quite new to Java and I work in rather limited environment (not much memory). I know that Java has mechanisms to release some objects, which are not used anymore. Can You tell me how it actually works, do I need to invoke garbage collector manually, or is it some background process which works independently. Maybe You can provide me some link, where I can find more information concerning this subject.
Johannes de Jong

Joined: Jan 27, 2001
Posts: 5089
Try Chapter 9 of Inside the Java 2 Virtual Machine Garbage Collection by Bill Venners
Good luck

[This message has been edited by Johannes de Jong (edited September 25, 2001).]
Kanan Dave

Joined: Sep 11, 2001
Posts: 2
You don't have to free the memory,java handles deallocation automatically.
when no reference to an abject exists, that object is that object is assumed to be no loger needed and the memory for that object can be reclaimed.
so you don't have to worry about it.
I agree. Here's the link:
subject: Garbage collection
jQuery in Action, 3rd edition