一、定义
- Java自己保留的一些单词,作为特殊功能的,例如:public、class、byte、short、int、long…
- 不能用来作为类名或者是变量名称,否则报错
二、包含
abstract | assert | boolean | break | byte |
---|---|---|---|---|
case | catch | char | class | const |
continue | default | do | double | else |
eum | extends | final | finally | float |
for | goto | if | implements | import |
instanceof | int | interface | long | native |
new | package | private | protected | public |
return | strictfp | short | static | super |
switch | synchronized | this | throw | throws |
transient | try | void | volatile | while |