Given:
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
Given:
What is the result?()
A.0
B.1
C.2
D.3
E.4