Q. Which method is called when an object is garbage collected?
Solution:
The finalize() method is invoked by the garbage collector before an object is reclaimed.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
The finalize() method is invoked by the garbage collector before an object is reclaimed.
Strengthen Your Practice with our comprehensive question bank.