This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Garbage collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Garbage collection" Watch "Garbage collection" New topic
Author

Garbage collection

antraarora
Ranch Hand

Joined: Jul 27, 2000
Posts: 45
Can a programmer code to run the GC whenever you want to?
softie
Ranch Hand

Joined: Aug 29, 2000
Posts: 41
Hi,
GC can be called in the finalise method if you so want to do the garbage collection.
Bye
Venu
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi ...
You can call System.gc() or Runtime.gc() any time you want but it does not guarantee garbage collection will occur.


Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
 
Have you checked out Aspose?
 
subject: Garbage collection
 
It's not a secret anymore!