Why do I keep getting an UnsupportedOperationException thrown when I try some collection operations?

John Zukowski

Several methods of the collection interfaces are considered optional. If an unsupported operation is called, that is when you'll see the UnsupportedOperationException thrown. The javadoc for a collection implementation should document which methods are optional.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.