ArrayList Set Method Properties
All of the following statements about the ArrayList set() method are true EXCEPT:
A
If an invalid index is provided, the set() method throws an IndexOutOfBoundsException.
B
The set() method returns the old element that was replaced.
C
The set() method can add a new element to the ArrayList, increasing its size.
D
The set() method replaces the element at the specified index with a new element.
Question Leaderboard
| Rank | |||||
|---|---|---|---|---|---|
| #1 | kaisuki | 1 | 1 | 0m 00s | 100 |
| #2 | bommasam000 | 1 | 1 | 0m 08s | 92 |
| #3 | namansoin000 | 1 | 1 | 1m 13s | 27 |
| #4 | singhris000 | 1 | 2 | 2m 38s | -68 |
Items per page:
10
1 – 4 of 4
APFIVE