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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "finalize" Watch "finalize" New topic
Author

finalize

MS Khan Khan
Greenhorn

Joined: Sep 23, 2003
Posts: 3
why finalize() method is made protected in Object class.plz give a solid logical answer.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
finalize can only be called by the object itself and not from outside.
It must be protected that subclasses are able to call the finalize method which the inherited from Object if none is implemented.
 
 
subject: finalize
 
Similar Threads
finally , finalize()
Gc question
Garbage Collection
why finalize() can't be defined as private?
Finalization Method