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

Java认证考试

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

11. rbo = new ReallyBigObject();  12. // more code here  13. rbo = null;  14. /* insert code here */  Which statement should be placed at line 14 to suggest that the virtual machine expend effort toward recycling the memory used by the object rbo?() 

  • A、 System.gc();
  • B、 Runtime.gc();
  • C、 System.freeMemory();
  • D、 Runtime.getRuntime().growHeap();
  • E、 Runtime.getRuntime().freeMemory();
正确答案:A
答案解析:
进入题库查看解析

微信扫一扫手机做题