Skip to content
Sharp

Core Java · interview question

Which collection should you use if you need to frequently access elements by their index?

Multiple choiceEasychapter-4-curatedpremiumcore-javacode-reading-with-collections
Choose one answer
Answer and explanation

Correct answer

D. ArrayList

Why

ArrayList provides access to elements by their index, making it suitable for scenarios where indexed access is frequently required.

Test yourself on Core Java

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

Start free test
All Core Java questions →