java create unmodifiable list

Java
List<Object> list = Collections.unmodifiableList(new Object());
Source

Also in Java: