Abstract | Assert | boolean | break | byte | case |
Catch | char(character) | class | const | continue | default |
Do | Double | else | extends | final | finally |
float | For | goto | if | implements | import |
instanceof | Int | interface | long | native | new |
Null | Package | private | protected | public | return |
Short | Static | strictfp | super | switch | synchronized |
This | Throw | throws | transient | try | void |
Volatile | While |
|
|
|
|
变量名和方法名不能使用这些关键字。
备注:Java中没有goto语句,但是有goto关键字。