By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,779 Members | 1,078 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,779 IT Pros & Developers. It's quick & easy.

The Garbage Collector..

P: 45
Hi Everyone,

I really need to know which method is called by the garbage collector on an object when garbage collection determines that there are no more references to the object?

and does anyone happen to know which class contains the definition of this method?
I checked the JAVA API for the classes that all other classes extend implicitly, im kind of getting confused :s

Thanks,

Manal
Dec 17 '06 #1
Share this Question
Share on Google+
1 Reply


10K+
P: 13,264
Hi Everyone,

I really need to know which method is called by the garbage collector on an object when garbage collection determines that there are no more references to the object?

and does anyone happen to know which class contains the definition of this method?
I checked the JAVA API for the classes that all other classes extend implicitly, im kind of getting confused :s

Thanks,

Manal
System.gc()

That's in the System class.
Dec 18 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.