Question PRG-JAVA-0053
MediumA List<Integer> list holds [10, 20, 30]. What does list.remove(1) remove?
- A.
The element at index 1 (20), because remove(int index) is chosen for an int argument
- B.
The first element
- C.
Sign up free to see the answer and a step-by-step explanation.