M

Mahesh Chandra • 6.28K Points
Tutor III

Q. When is the finalize() method called?

  • (A) Before an object goes out of scope
  • (B) Before garbage collection
  • (C) Before a variable goes out of scope
  • (D) None finalize() method
  • Correct Answer - Option(B)
  • Views: 222
  • Filed under category JAVA

Explanation by: Yami Thakur
finalize() method is called before garbage collection.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics