Unit 7: ArrayList Flashcards Preview

AP CS-Applications > Unit 7: ArrayList > Flashcards

Flashcards in Unit 7: ArrayList Deck (2)
Loading flashcards...
1

What differentiates an ArrayList from an Array?

An ArrayList's size can change.

2

Why would you choose an Array over an ArrayList?

An ArrayList takes more memory. Unless you need to change the size of a list, an Array will run smoother and more efficiently.