Skip to content

Commit

Permalink
!24 update docs/java/basis/java-basic-questions-02.md.
Browse files Browse the repository at this point in the history
Merge pull request !24 from 格致诚正,修齐治平/N/A
  • Loading branch information
Snailclimb authored and gitee-org committed Jul 24, 2023
2 parents 6884f09 + 1cf762b commit 9e566a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/java/basis/java-basic-questions-02.md
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ String d = str1 + str2; // 常量池中的对象
System.out.println(c == d);// true
```
被 `final` 关键字修改之后的 `String` 会被编译器当做常量来处理,编译器在程序编译期就可以确定它的值,其效果就相当于访问常量。
被 `final` 关键字修饰之后的 `String` 会被编译器当做常量来处理,编译器在程序编译期就可以确定它的值,其效果就相当于访问常量。
如果 ,编译器在运行时才能知道其确切值的话,就无法对其优化。
Expand Down

0 comments on commit 9e566a5

Please sign in to comment.