black

1Z0-853

登录

单项选择题

Given:  
11. public void genNumbers() {  
12. ArrayList numbers = new ArrayList();  
13. for (int i=0; i<10; i++) {
14. int value = i * ((int) Math.random());  
15. Integer intObj = new Integer(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 garbage collection?()

A. Line 19
B. The object is NOT a candidate for garbage collection.
C. Line 17
D. Line 16
E. Line 18

相关考题

多项选择题 A JavaBeans component has the following field:   11. private boolean enabled;   Which two pairs of method declarations follow the JavaBeans standard for accessing this field?()

单项选择题 Given: What is the result?()

单项选择题 Click the Exhibit button.   Given: ClassA a = new ClassA();   a.methodA();   What is the result?()

All Rights Reserved 版权所有©考试题库网(kstiku.com)

备案号:湘ICP备14005140号-3

经营许可证号:湘B2-20140064