Java · Easy · ProWhat are collection factory methods (List.of, Set.of, Map.of) introduced in Java 9? How do they differ from Arrays.asList?JavaCollectionsJava 8+