ArrayList vs array: ArrayList has dynamic size and wraps objects; arrays have fixed size and store primitives directly.
How to apply it: Choose ArrayList when the number of elements is unknown or changes frequently.
Course: AP Computer Science A · Unit: ArrayList
Practice questions about ArrayList vs array on AimFive — get rubric-based feedback showing exactly which points you earned.
AP and Advanced Placement are trademarks of College Board. AimFive is not affiliated with or endorsed by College Board.