Skip to content
Ravnary
A Knowledge Platform
Categories
Learn
Cheatsheets
Paths
Favourites
Review
Community
Colour theme
Light
Dark
System
Learn
Java Collections and Streams
Collections
Lists
Quiz
Q 01
/ 06
Advanced
Question 1 of 6. 0 correct, 0 incorrect.
Match each access pattern to the list implementation that suits it.
Reading by index inside a tight loop
Choose…
`ArrayDeque`
`LinkedList`
`ArrayList` sized ahead
`ArrayList`
Adding at the front and taking from the back
Choose…
`ArrayDeque`
`LinkedList`
`ArrayList` sized ahead
`ArrayList`
Inserting in the middle repeatedly, while iterating
Choose…
`ArrayDeque`
`LinkedList`
`ArrayList` sized ahead
`ArrayList`
Appending a million rows, then walking them once
Choose…
`ArrayDeque`
`LinkedList`
`ArrayList` sized ahead
`ArrayList`
Check answer
Home
Learn
Paths
Saved
Community