📜  为什么在java代码示例中字符串不可变

📅  最后修改于: 2022-03-11 14:52:23.336000             🧑  作者: Mango

代码示例1
In java, string objects are immutable. Immutable simply means unmodifiable or unchangeable.

Once string object is created its data or state can't be changed but a new string object is created.