*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: finalize