Question
Which is not a true statement about an array?
- A. An array expands automatically when it is full.
- B. An array is allowed to contain duplicate values.
- C. An array understands the concept of ordered elements.
- D. An array uses a zero index to reference the first element.
A.
Note
An ArrayList expands automatically when it is full.
An array does not, making Option A the answer.
The other three statements are true of both an array and an ArrayList.
PreviousNextRelated