1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Update java-basic-questions-02.md

修正描述错误
This commit is contained in:
qksuki 2024-09-16 01:03:50 +08:00 committed by GitHub
parent d011ff6161
commit 4e431621a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -695,7 +695,7 @@ System.out.println(s);
```java
// 在字符串常量池中创建字符串对象 ”ab“
// 将字符串对象 ”ab“ 的引用返回给引用 aa
// 将字符串对象 ”ab“ 的引用赋值给 aa
String aa = "ab";
// 直接返回字符串常量池中字符串对象 ”ab“赋值给引用 bb
String bb = "ab";