Arrays.aslist() and UnsupportedOperationException
UnsupportedOperationException
is a member of Java Collection Framework, it’s thrown when an operation cannot be performed because it is not supported for that particular collection.
One of the most common causes for this exception is using the Arrays.asList() method, Let’s dive into the source codes and figure out why this could happen.