AP Computer Science Amediummcq1 pt
An ArrayList is preferable to an array when
A.the number of elements changes during execution
B.the size is fixed and known
C.only primitives are stored
D.memory must be minimal
ArrayLists resize automatically.
Athe number of elements changes during execution
Practice more AP Computer Science A questions with full explanations
Practice Unit 7: ArrayList Questions →