Hello, can someone explain what a view is in java. For e.g, when using Array.asList(), this method returns a view of a list. However, the list isn't like a normal list in terms of we can add something to it or expand it; it's not dynamic. Why even though if we output the instanceof it, it will show List but it isn't "really" a list?
What is the purpose of a view if it doesn't really behave as the data type we want it to?