A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
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.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: gc() method
finalize access specifiers protected/private/public
why two gc() method ?
Head First Java Be the Garbage Collector
System vs Runtime
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015