Java 9 Features - Immutable List Creates a immutable list (read-only), cannot modify the list once it is created. List.of(1,2,3); Cannot add null value, it will throw NullPointerException. Cannot add more values to the list, it will throw UnsupportedOperationException. Can add values only at the time of initialization. - Immutable Set Set.of(1,2,3); Cannot add duplicate values like Set.of(1,1,2), it…