Mutable to Immutable

Does the following program compile?