多項(xiàng)選擇題

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>();

微信掃碼免費(fèi)搜題