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

单项选择题

11.public void genNumbers(){
12.ArrayList numbers=new ArrayList();
13.for(inti=0;i<10;i++){
14.intvalue=i*((int)Math.random());
15.IntegerintObj=newInteger(value);
16.numbers.add(intObj);
17.}
18.System.out.println(numbers);
19.}
Which line of code marks the earliest point that an object referenced by intObj becomes a candidate for garbagec ollection?()

    A.Line16
    B.Line17
    C.Line18
    D.Line19
    E.The object is NOT a candidate for garbage collection.

点击查看答案&解析

相关考题

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

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

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

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