Infosys interview question

Why string is immutable in Java