关键字:即在Java中有特殊含义的单词(字符串)
保留字:当前版本没有特殊含义,后续可能会用作关键字;或者在其他语言中有特殊含义,不建议使用的单词
Java中共有51 + 2 = 53个关键字,其中两个是保留字,goto和const
权限修饰符
public、protect、private
包
package、import
类、接口、抽象类
class、interface、abstract、implement、extend、new、super、this、instanceof
方法
void、return
数据类型
byte、short、int、long、float、double、char、boolean、enum、true、false、null
条件、循环
if、else、for、do、while、switch、case、default、continue、break
异常
throws、try、catch、throw、finally
线程
synchronization、volatile
其他
native、final、static、transient、assert、strictfp