<code>list.remove(2);</code> (when list has Integer values)
- Acheck_circle
Removes element at index 2 (calls remove(int))
- B
Removes the value 2
- C
Sets index 2 to null
- D
Compile error
Explanation
For an ArrayList<Integer>, <code>remove(int index)</code> is preferred over <code>remove(Integer)</code> for primitive 2.