java list unmodified code example Example: java create unmodifiable list List<Object> list = Collections.unmodifiableList(new Object());