SCJP 1.6版考題 097

出自 陳富國維基館
於 2013年3月30日 (六) 05:49 由 Ikk (對話 | 貢獻) 所做的修訂 (新頁面: 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...)
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
前往: 導覽搜尋
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)