Skip to content
Sharp

Collections · interview question

Which collection would you use to store product reviews if order and fast access are both important, but insertion is infrequent?

Multiple choiceHardchapter-4-curatedpremiumcollectionschoosing-the-right-collection
Choose one answer
Answer and explanation

Correct answer

B. ArrayList

Why

ArrayList provides fast random access and maintains order, making it suitable when the primary concern is access speed rather than frequent modifications.

Test yourself on Collections

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

Start free test
All Collections questions →