- 博客(1)
- 收藏
- 关注
原创 String对象为什么是不可变的
String对象为什么是不可变的 String内部成员 /** The value is used for character storage. */ private final char value[]; /** Cache the hash code for the string */ private int hash; // Default to 0 从String内部成员来看, String底层是基于byte数组实现的, 修饰符为 private final类型,外部不可
2020-10-07 17:06:44
96
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人