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