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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

68

How can you find duplicates in a list?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly