1
JavaIntermediate#generics
Collection is the root interface of the collections framework (List, Set, Queue). Collections is a utility class with static helper methods like sort(), reverse(), unmodifiableList(), and synchronizedList().
List<Integer> list = new ArrayList<>(List.of(3,1,2)); Collections.sort(list); // [1,2,3]