A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Joined: Feb 12, 2010
May 25, 2010 06:39:51
Why do we have the gc() method in both the System class and the Runtime class. Is there any specific reason ?
Joined: Sep 29, 2008
May 25, 2010 07:04:17
As the documentation states, System.gc() basically calls the Runtime method. I'd assume convenience.
subject: gc() method
why two gc() method ?
System vs Runtime
finalize access specifiers protected/private/public
Head First Java Be the Garbage Collector
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014