mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-20 22:17:09 +08:00
[docs improve] 添加关键字的小tips
This commit is contained in:
parent
7565540951
commit
f63f4c9e02
@ -256,6 +256,8 @@ Java 中的注释有三种:
|
||||
| 变量引用 | super | this | void | | | | |
|
||||
| 保留字 | goto | const | | | | | |
|
||||
|
||||
> Tips:所有的关键字都是小写的,在 `IDE` 中表现为<font color=blue>蓝色</font>。
|
||||
|
||||
> `default` 这个关键字很特殊,既属于`程序控制`,也属于`类,方法和变量修饰符`,还属于`访问控制`。
|
||||
>
|
||||
> 在`程序控制`中,当在 `switch` 中匹配不到任何情况时,可以使用 `default` 来编写默认匹配的情况。
|
||||
|
Loading…
x
Reference in New Issue
Block a user