This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes GC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "GC " Watch "GC " New topic
Author

GC

Manu
Greenhorn

Joined: Apr 15, 2003
Posts: 3
When does the Garbage Collector gets invoked--when the memory is full or for every unit of interval ?
When the application comes to halt, does all the objects get removed by GC ?
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Manu,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Damien Howard
Ranch Hand

Joined: Apr 01, 2003
Posts: 456
There is not guarantee as to when the GC will run. IT is up to the implementor of the VM. But usually it should run before you run out of any memory, but again no guarantees.
 
 
subject: GC
 
Similar Threads
Reclaiming memory in java without using garbage collector........
Finalize & Garbage Collector
GC
stop() method of applet and GC
doubt on garbage collection