Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Beginning Java and the fly likes Regarding garbage collector Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Regarding garbage collector " Watch "Regarding garbage collector " New topic
Author

Regarding garbage collector

praveen raaj
Greenhorn

Joined: Nov 30, 2009
Posts: 11
Hi.... Friends,
The garbage collector is under control of JVM.and JVM decides when to run the garbage collector.
My Question is garbage collector is a part of heap? or some where in JVM Architecture?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 41640
    
  31
Not on the heap. It is a program whihc runs in its own thread as a part of the JVM.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Regarding garbage collector