欢迎来到求知题库网 求知题库官网
logo
全部科目 > Java认证考试 > Java认证考试综合练习

单项选择题

1.public class GC{
2.private Objec to;
3.private void doSomethingElse(Object obj){o=obj;}
4.public void doSomething(){
5.Object o=new Object();
6.doSomethingElse(o);
7.o=new Object();
8.doSomethingElse(null);
9.o=null;
10.}
11.}
When the doSomething method is called,after which line does the Object created in line 5 become available for garbage collection?()

    A.Line5
    B.Line6
    C.Line7
    D.Line8
    E.Line9
    F.Line10

点击查看答案&解析

相关考题

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

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

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

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