While studying the Collection API, we find that some methods (add, remove,...) may throw a java.lang.UnsupportedOperationException>
Collection
add
remove
java.lang.UnsupportedOperationException>
Yes. For example when you call Collections.unmodifiableList(list), the returned list does not support add(..)
Collections.unmodifiableList(list)
add(..)
These collections, however, are mostly private classes which are not exposed an an API, so you cannot instantiate them.