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
Maps and HashMap Internals
Quiz
Q 01
/ 05
Advanced
Question 1 of 5. 0 correct, 0 incorrect.
Match each requirement to the map implementation that meets it.
Cheapest lookups, and no order needed
Choose…
`LinkedHashMap`
`TreeMap`
`HashMap`
Entries must come back in the order they went in
Choose…
`LinkedHashMap`
`TreeMap`
`HashMap`
Keys must be sorted, and you need the first and last
Choose…
`LinkedHashMap`
`TreeMap`
`HashMap`
Check answer
Home
Learn
Paths
Saved
Community