File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
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.
I agree. Here's the link:
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