java关键字分类
利用关键字来告诉编译器其声明的变量类型、类、方法特性等信息。
分类 | 关键字 |
---|---|
访问控制 | private、protected、public |
类,方法和变量修饰符 | abstract、class、extends、final、implements、interface、native、new、static、strictfp、synchronized、transient、volatile、enum |
程序控制 | break、continue、return、do、while、if、else、for、instanceof、switch、case、default、assert |
错误处理 | try、catch、throw、throws、finally |
包相关 | import、package |
基本类型 | boolean、byte、char、double、float、int、long、short |
变量引用 | super、this、void |
保留字 | goto、const |