Java - Classes and Objects
Which of the following best describes the role of the
finalize() method in Java's object lifecycle?finalize() method in Java's object lifecycle?finalize() method purposefinalize() method is called by the garbage collector before reclaiming memory.finalize() called before GC = D [OK]finalize() runs before object removal by GC [OK]finalize() creates or initializes objects15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions