?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

Use of ArrayList Versus Array

APCSA-LXLBEE

What is one reason that you would use an ArrayList versus an array?

A

ArrayLists use less memory space.

B

ArrayLists are easier to retrieve elements from.

C

ArrayLists are better for primitive data types.

D

ArrayLists are easier to declare.

E

ArrayLists can shrink or grow as needed.