Programming Languages Java Mcq
Sep 24, 2025

Which method is called when an object is garbage collected?

Choose the correct answer:
A) finalize()
B) delete()
C) destroy()
D) clean()
Detailed Explanation
The finalize() method is called by garbage collector before destroying an object.
Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback