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