What is the KEY ADVANTAGE of an \(ArrayList\) over a regular array?
- **A)** ArrayLists are always faster than arrays for every operation
- **B)** An \(ArrayList\) always uses less memory than an array
- **C)** An \(ArrayList\) can store primitive types directly, unlike arrays
- **D)** An \(ArrayList\) can DYNAMICALLY grow or shrink in size as elements are added or removed, unlike a regular array, which has a FIXED size once created
This flexible sizing is the defining practical advantage of \(ArrayList\) over a fixed-size array, especially useful when the number of elements isn't known in advance.