title: Regarding immutable List (created by Arrays.asList())
body: <p>When we create a list from an array using <code>java.util.Arrays.asList()</code>, the list is immutable. I am just curious to know why do we want to create a immutable list when the basic purpose of <code>List</code> (or <code>Set</code> or <code>Map</code>) is to have dynamic size and to be able to add, remove elements at will. When we need a fixed size data structure we go for Array and when we need a dynamic data structure we go for <code>List</code> or <code>Set</code> or <code>Map</code> etc. So what is the purpose of having a immutable list? I came across this while working on my assignment.</p>