多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

Which statements describe guaranteed behavior of the garbage collection and finalization mechanisms?()  

  • A、Objects are deleted when they can no longer be accessed through any reference.
  • B、The finalize() method will eventually be called on every object.
  • C、The finalize() method will never be called more than once on an object.
  • D、An object will not be garbage collected as long as it is possible for an active part of the program to      access it through a reference.
  • E、The garbage collector will use a mark and sweep algorithm.
正确答案:C,D
答案解析:
进入题库查看解析

微信扫一扫手机做题