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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. 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