A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
MS Khan Khan
Joined: Sep 23, 2003
Sep 23, 2003 15:07:00
why finalize() method is made protected in Object class.plz give a solid logical answer.
Joined: Nov 22, 2008
Sep 23, 2003 16:12:00
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:
finally , finalize()
why finalize() can't be defined as private?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014