Skip to content

Instantly share code, notes, and snippets.

@mcupak
Created November 7, 2017 01:23
Show Gist options
  • Select an option

  • Save mcupak/7dfa4b5824df43bf9a084a1e49083c27 to your computer and use it in GitHub Desktop.

Select an option

Save mcupak/7dfa4b5824df43bf9a084a1e49083c27 to your computer and use it in GitHub Desktop.
jshell> list.add("d")
| java.lang.UnsupportedOperationException thrown:
| at ImmutableCollections.uoe (ImmutableCollections.java:70)
| at ImmutableCollections$AbstractImmutableList.add (ImmutableCollections.java:76)
| at (#13:1)
jshell> list.getClass()
$14 ==> class java.util.ImmutableCollections$ListN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment