Which three code fragments, inserted independently at line 6, will compile?()
- A、list.add("foo");
- B、Object o = list;
- C、String s = list.get(0);
- D、list = new ArrayList<String>();
- E、list = new ArrayList<Object>();
正确答案:B,C,D
答案解析:有
微信扫一扫手机做题
Which three code fragments, inserted independently at line 6, will compile?()
微信扫一扫手机做题