Let list be an ArrayList<Integer> containing these elements:
2 5 7 6 0 1
Which of the following statements would not cause an error to occur? Assume that each statement applies to the given list, independent of the other statements.
(A) Object ob = list.get(6);
(B) Integer intOb = list.add(3.4);
(C) list.add(6, 9);
(D) Object x = list.remove(6);
(E) Object y = list.set(6, 8);