In java 9, new factory methods for lists were introduced, List.of:
List<String> strings = List.of("first", "second");
What's the difference between the previous and new option? How is this
List.of(1, 2, 3);
And this
Arrays.asList(1, 2, 3);
Different?