my dog learned polymorphism
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "GC" Watch "GC" New topic


Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1599
"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: 2068
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

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.
I agree. Here's the link:
subject: GC
It's not a secret anymore!