File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes finalize() method - protected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "finalize() method - protected" Watch "finalize() method - protected" New topic
Author

finalize() method - protected

Sreedevi Vinod
Ranch Hand

Joined: Jan 17, 2005
Posts: 117
The finalize() method is declared protected in the Object class, then only classes in the same package or subclasses can call it. Then how will the garbage collector code access this method ?

Thanks
Devi
Kedar Dravid
Ranch Hand

Joined: May 28, 2004
Posts: 333
All objects extend the Object class, by default!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: finalize() method - protected
 
Similar Threads
Object class method access specifier
Garbage Collection
why finalize() method is protected?
Finalization Method
finalize method