欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > SCJP程序员认证考试

单项选择题

12. void start() { 
13. A a = new A(); 
14. B b = new B(); 
15. a.s(b); 
16. b = null; 
17. a = null; 
18. System.out.println(“start completed”);
19. } 
When is the B object, created in line 14, eligible for garbage collection?()  

    A. After line 16.
    B. After line 17.
    C. After line 18 (when the methods ends).
    D. There is no way to be absolutely certain.
    E. The object is NOT eligible for garbage collection.

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题