Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why garbage collection ?

Status
Not open for further replies.

satellite03

IS-IT--Management
Dec 26, 2003
248
0
0
IN
i want to know why JVM automatically collect garbages ? is it to prevents programs from ever running out of memory ?
 
If you don't garbase collect, you'll run out of RAM.

GC is like a bit like dealloc in C - but done for you via object refererences.
 
You will be also able to specify the heap size while running the application.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top