Asked by
Olivier Fleury
on Oct 27, 2024Verified
How many finalizers can a class have?
A) zero
B) one
C) two
D) Any number
Finalizers
Special methods in Java that the garbage collector calls on an object when no more references to the object exist, to perform cleanup operations before the object is destroyed.
- Gain an understanding of the core elements of object-oriented programming, like classes, methods (public and private), constructors, and objects.
Verified Answer
MR
Learning Objectives
- Gain an understanding of the core elements of object-oriented programming, like classes, methods (public and private), constructors, and objects.