阅读背景:

Why string is immutable in Java ?

来源:互联网 

 

  This is an old yet still popular question. There are multiple reasons that String is designed to be immutable in Java. A good answer depends on good understanding of memory, synchronization, data structures, etc. In the following, I will summarize some answers.  This is an old yet still popular question




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: