In Java 8 or earlier:
List<String> string = Arrays.asList("foo", "bar", "baz");
This will give you a List backed by the array, so it cannot change length.
But you can call List.set, so it's still mutable.
In Java 9:
List<String> string = List.of("foo", "bar", "baz");
This will give you an immutable List, so it cannot be changed.
Which is what you want in most cases where you're prepopulating it.