Skip to content
Sharp

Collections · interview question

Why does the difference between an ArrayList and an array in Java matter in practice?

Multiple choiceEasychapter-4-curatedpremiumcollectionslist-interface-and-arraylist
Choose one answer
Answer and explanation

Correct answer

A. ArrayList supports dynamic resizing, while array size is fixed.

Why

The primary difference is that ArrayLists support dynamic resizing, meaning they can grow or shrink as needed, whereas arrays have a fixed size after creation.

Test yourself on Collections

A free test with instant, explained results. No account needed.

Start free test
All Collections questions →