πŸ“Š JAVA
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

πŸ‘οΈ
3
Total Visits
πŸ“½οΈ
6 d ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
84%
Success Rate