This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
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 Soft Skills this week in the Jobs Discussion 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