Tuesday, 3 November 2015

What is UnsupportedOperationException?

UnsupportedOperationException:- The UnsupportedOperationException is thrown when you try to call a collections-related method on an instance of a collection's interface that does not provide a complete implementation of that interface.If a collection is a fixed-size or read-only collection, you can''t add or remove elements from it.Trying to perform such an operation causes this exception to be thrown.