Hello everyone, I just want to know the difference between System.gc() and Runtime.gc().As far as I know is that System.gc will request Garbage Collection.But don't know the function of Runtime.gc(). Can i get the detailed explaination regarding the same? -Thank you.
A quick look at the API documentation (you too can do this) tells you they are the same. Instead of Runtime.getRuntime().gc() you can write System.gc(). [ December 22, 2006: Message edited by: Barry Gaunt ]