Given:<br /> <img src="https://nimg.ppkao.com/2018-08/wenxueying/2018080111431868858.png?sign=f5c8df2c1657ab1a62dc5194863fdf5e&t=62d209a1" /><br /> 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