1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-08-10 00:41:37 +08:00

修改错别字

This commit is contained in:
Snailclimb 2018-08-29 17:17:12 +08:00 committed by GitHub
parent f27ca51e23
commit 167c9541cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,7 +223,7 @@ JDK1.4中新加入的 **NIO(New Input/Output) 类**,引入了一种基于**通
```
![](https://user-gold-cdn.xitu.io/2018/8/22/16561e59a4d13f92?w=593&h=603&f=png&s=22265)
尽量避免多个字符串拼接,因为这样会重新创建对象。如果需要改变字符串的,可以使用 StringBuilder 或者 StringBuffer。
尽量避免多个字符串拼接,因为这样会重新创建对象。如果需要改变字符串的,可以使用 StringBuilder 或者 StringBuffer。
### String s1 = new String("abc");这句话创建了几个对象?
**创建了两个对象。**