| 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!
|
 |
 |
|
|
subject: finalize() method - protected
|
|
|