🎴 Flashcard Mode

Multiple Programming Languages Quiz: XML/XSD, Perl, SAS, and Java

Card1 / 20
Mastered0
Review0
QuestionClick to flip

Which ALL are true?

AnswerClick to flip back
A
The finalize method declared in class Object takes no action
B
The finalize method for a given object will be called no more than once by the garbage collector
💡 Explanation:

B is true because Object's finalize() is empty by default. D is true - GC guarantees finalize is called at most once per object. A is false - you CAN call finalize explicitly. C is false - super.finalize() must be called explicitly. E is false - finalization order is NOT guaranteed.

Change Mode