Cracking the Java Coding Interview Flashcards
(2 cards)
1
Q
64
How can you create an unmodifiable list?
A
- Your best choice : List.of()
- Collections.unmodifiableList() builds a view
2
Q
68
How can you find duplicates in a list?
A