Q. Which method is called automatically during object destruction?

  • (A) destroy()
  • (B) finalize()
  • (C) delete()
  • (D) remove()
πŸ’¬ Discuss
βœ… Correct Answer: (B) finalize()
Explanation: finalize() was used by GC before removal (deprecated now).
Explanation by: Roshan
finalize() was used by GC before removal (deprecated now).

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
22
Total Visits
πŸ“½οΈ
4 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
84%
Success Rate