Regarding immutable List (created by Arrays.asList())
When we create a list from an array using java.util.Arrays.asList() , the list is mutable. Yes and no: The list may be modified, by calling list.set(index, element); But the list may not be structurally modified. That means that it is not possible to add elements to the list or remove elements from the list. The … Read more