πŸ“Š JAVA
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) Before garbage collection

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
329
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Mahesh Chandra
Publisher
πŸ“ˆ
89%
Success Rate