Under what conditions is an object's finalize() method invoked by the garbagecollector

The garbage collector invokes an object's finalize() method when it detects that the objecthas becomeunreachable.

Showing Answers 1 - 1 of 1 Answers

When an object has no references then it reaches its unreachable condition and under this condition the finalize() method is invoked by the garbage collector.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions