• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

gc() method

 
jose chiramal
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do we have the gc() method in both the System class and the Runtime class. Is there any specific reason ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As the documentation states, System.gc() basically calls the Runtime method. I'd assume convenience.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic