SCJP 1.6版考題 097
出自 陳富國維基館
Which statement is true? A. A class's finalize() method CANNOT be invoked explicitly. B. super.finalize() is called implicitly by any overriding finalize() method. C. The finalize() method for a given object is called no more than once by the garbage collector. D. The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.
解答
Ans: C
解說: finalize方法僅被garbage collector叫用一次(no more than once)
|