aspose file tools*
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "GC" Watch "GC" New topic
Author

GC

Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1527
"You can directly run the grabage collector whenever you want."

-What does that mean?? And what should I say if it is true or false???
[ November 26, 2005: Message edited by: Akhil Trivedi ]

Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2057
Definitely, of course, it is false. You could suggest garbage collection, but it still is up to jvm if he will do it.
madhu cm
Greenhorn

Joined: Jun 26, 2005
Posts: 22
yes, you can only request a GC to run by calling a method System.gc()....
The JVM takes your request but it is not sure that it will run GC always because you are just making a request not instructing to do.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: GC