Possible Duplicate:
Why is the finalize() method in java.lang.Object “protected”?
The finalize method is defined with a protected scope, then how is it possible that some other object such as the garbage collector is able to call it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because the garbage collector is part of the language specification and thus can do whatever the language specification says it can.