可学答题网 > 问答 > OCJP(310-065)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

Given: Which three code&en


Given: Which three code fragments, inserted independently at line 6, will compile?()

  • Alist.add("foo");
  • BObject o = list;
  • CString s = list.get(0);
  • Dlist = new ArrayList();
参考答案
参考解析:
分类:OCJP(310-065)题库
相关推荐

1、Given: Which two code&ensp

Given:Which two code fragments, inserted independently at line 3, generate the output 4247? ()...

2、Given: Which code, inserte

Given:Which code, inserted at line 14, allows the Sprite class to compile?()ADirection d =&ens...

3、Given: Which two code&ensp

Given:Which two code fragments, inserted independently at line 5, will compile without warnings?()A...

4、Given: Which code, inserte

Given:Which code, inserted at line 15, creates an instance of the Point class defined in&ens...

5、Given: Which code fragment

Given:Which code fragment, inserted at line 23, allows the code to compile?()Adf = new Da...

6、Given: Which code, inserte

Given:Which code, inserted at line 16, will cause a java.lang.ClassCastException?()AAlpha a = x;BF...