Synopsys interview question

why strings are immutable in java?