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
Sets and Queues
Quiz
Q 01
/ 05
Intermediate
Question 1 of 5. 0 correct, 0 incorrect.
Match each requirement about iteration order to the set implementation that meets it.
No ordering needed; make lookups as cheap as possible
Choose…
`LinkedHashSet`
`HashSet`
`TreeSet`
Output must come back in the order elements were added
Choose…
`LinkedHashSet`
`HashSet`
`TreeSet`
Output must be sorted, and you need the first and last
Choose…
`LinkedHashSet`
`HashSet`
`TreeSet`
Check answer
Home
Learn
Paths
Saved
Community