Skip to content

Commit

Permalink
[docs improve] 添加关键字的小tips
Browse files Browse the repository at this point in the history
  • Loading branch information
samho2008 committed Feb 16, 2022
1 parent 7565540 commit f63f4c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/java/basis/java-basic-questions-01.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ Java 中的注释有三种:
| 变量引用 | super | this | void | | | | |
| 保留字 | goto | const | | | | | |
> Tips:所有的关键字都是小写的,在 `IDE` 中表现为<font color=blue>蓝色</font>。
> `default` 这个关键字很特殊,既属于`程序控制`,也属于`类,方法和变量修饰符`,还属于`访问控制`。
>
> 在`程序控制`中,当在 `switch` 中匹配不到任何情况时,可以使用 `default` 来编写默认匹配的情况。
Expand Down

0 comments on commit f63f4c9

Please sign in to comment.