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