Infosys interview question

Why string is immutable in java?