Java 9 introduced new convenience factory methods for creating Collection
s. As an example:
List<String> list = List.of("a", "b", "c");
Why results of these methods are immutable?
Java 9 introduced new convenience factory methods for creating Collection
s. As an example:
List<String> list = List.of("a", "b", "c");
Why results of these methods are immutable?