When ArrayList exceeds its internal capacity:
- A
Throws exception
- Bcheck_circle
Internally allocates a larger array and copies elements (amortized O(1) add)
- C
Stops accepting new elements
- D
Becomes null
Explanation
Resizable; growing is automatic.
AP Computer Science A· difficulty 4/5
When ArrayList exceeds its internal capacity:
Throws exception
Internally allocates a larger array and copies elements (amortized O(1) add)
Stops accepting new elements
Becomes null
Explanation
Resizable; growing is automatic.
Want 10 more like this — adaptive to your weak spots?