mirror of
https://github.com/youthlql/JavaYouth.git
synced 2026-03-14 05:43:50 +08:00
更新Netty-第三话,jvm第四章错别字纠错
This commit is contained in:
@@ -1421,7 +1421,7 @@ public class StringBuilderTest {
|
||||
s1.append("b");
|
||||
return s1;
|
||||
}
|
||||
//s1的操作:是线程安全的(s1自己消亡了,最后返回的智商s1.toString的一个新对象)
|
||||
//s1的操作:是线程安全的(s1自己消亡了,最后返回的只是s1.toString的一个新对象)
|
||||
public static String method4(){
|
||||
StringBuilder s1 = new StringBuilder();
|
||||
s1.append("a");
|
||||
|
||||
Reference in New Issue
Block a user