We're sorry but rendepage doesn't work properly without JavaScript enabled. Please enable it to continue.
String为什么是不可变的吗?
千锋教育
简单来说就是String类利用了final修饰的char类型数组存储字符,源码如下: