• Post Reply Bookmark Topic Watch Topic
  • New Topic

GC

 
Akhilesh Trivedi
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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 ]
 
Jesus Angeles
Ranch Hand
Posts: 2069
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!