How to create Immutable or un-modifiable collection(Set, List) and Map in Java ?
With the Java 9 oracle introduced static overloaded methods called of() in Set, List and Map to handle immutable collection and map. Earlier, to create immutable collection developers had to…