Skip to content

Commit

Permalink
修改一个错别字
Browse files Browse the repository at this point in the history
  • Loading branch information
stunievi committed Jun 27, 2021
1 parent efa8bf3 commit 671c44f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/basics/java-basic/final-string.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ s = s.concat("ef");

所以一旦一个string对象在内存()中被创建出来他就无法被修改而且String类的所有方法都没有改变字符串本身的值都是返回了一个新的对象

如果我们想要一个可秀改的字符串可以选择StringBuffer 或者 StringBuilder这两个代替String
如果我们想要一个可修改的字符串可以选择StringBuffer 或者 StringBuilder这两个代替String

### 为什么String要设计成不可变

Expand Down

0 comments on commit 671c44f

Please sign in to comment.