File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Unreferenced and DGC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Unreferenced and DGC" Watch "Unreferenced and DGC" New topic
Author

Unreferenced and DGC

Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi All,
Once unreferenced is called on an object by the RMI runtime and there are no other local references to the object, is the object then eligible for garbage collection?
Thanks in advance
Michael Morris


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

I would think so. But why do you ask?
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi Mark,
Curiosity more than anything. I was also debating whether or not to add a finalize() method, but if there are no local references to such an object then unreferenced() serves the same purpose.
Thanks,
Michael Morris
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

Yes, I asked because I was afraid that you were going to try and use a finalize method, which I would avoid at all costs.
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unreferenced and DGC