"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 fin...) |
(無差異)
|
於 2013年3月30日 (六) 05:49 的最新修訂
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)
|