Capgemini interview question

Why string are immutable in java