This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Garbage Collection

 
sonir shah
Ranch Hand
Posts: 435
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between runtime.gc() and system.gc()
When can we use them and how?
 
anand raman
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess the difference lies just in the class they exist. Both indicate to the garbage collector that it is probably a good time to run.
Hope this helps
Anand
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is a discussion about that here:
http://www.javaranch.com/ubb/Forum24/HTML/013436.html
HIH
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform
 
gabi lupu
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sonir shah:
What is the difference between runtime.gc() and system.gc()
When can we use them and how?

system is platform independent and runtime is platform dependent.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic