ArrayList Set Method Properties
All of the following statements about the ArrayList set() method are true EXCEPT:
A
The set() method replaces the element at the specified index with a new element.
B
The set() method can add a new element to the ArrayList, increasing its size.
C
If an invalid index is provided, the set() method throws an IndexOutOfBoundsException.
D
The set() method returns the old element that was replaced.
Question Leaderboard
Not enough data yet to show leaderboard.
APFIVE