Cracking the Java Coding Interview Flashcards
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
j17 > Cracking the Java Coding Interview > Flashcards
64
How can you create an unmodifiable list?
68
How can you find duplicates in a list?