Skip to content
Sharp

Collections · interview question

Why is using an ArrayList over a LinkedList for storing product names faster in practice?

Multiple choiceMediumchapter-4-curatedpremiumcollectionscollection-performance-basics
Choose one answer
Answer and explanation

Correct answer

B. Constant-time access to elements by index

Why

ArrayList provides constant-time access to elements by index due to its underlying array structure, whereas LinkedList requires traversal to access elements.

Test yourself on Collections

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

Start free test
All Collections questions →