Skip to content

Commit 5962dca

Browse files
committed
[fix]java内存区域的一处笔误
1 parent 7b66618 commit 5962dca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/java/jvm/memory-area.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ System.out.println(c == d);// true
378378
final String str1 = "str";
379379
final String str2 = getStr();
380380
String c = "str" + "str2";// 常量池中的对象
381-
String d = str1 + str2; // 常量池中的对象
381+
String d = str1 + str2; // 在堆上创建的新的对象
382382
System.out.println(c == d);// false
383383
public static String getStr() {
384384
return "ing";

0 commit comments

Comments
 (0)