_________ is used to destroy the objects created by the constructor methods.

Skill/Topic: AWT & Applets
A) finalize()

Showing Answers 1 - 12 of 12 Answers

Anand

  • Apr 27th, 2006
 

Finalize may be correct but not entirely correct, the finalize() method is called when the object is destructed or say when the Garbage Collector is Picking up the Objects which are out of reference but it may sometime happen that during your program execution the Garbage Collector is never called and so the finalize() also does not get executed.

  Was this answer useful?  Yes

The answer should be "GarbageCollector". finalize() will be called at the time of destroying an object to give it a chance to fulfil it's last wish. But we can't say that finalize() is being used to destroy the object.

  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