Skip to content

Java关键字汇总


数据类型 ​

classinterfaceenumbyteshortintlongfloatdoublecharbooleanvoid

数值型 ​

truefalsenull

流程控制 ​

ifelseswitchcasedefaultwhiledoforbreakcontinuereturn

访问权限修饰符 ​

privateprotectedpublic

类、函数、变量修饰符 ​

abstractfinalstaticsynchronized

类之间的关系 ​

extendsimplements

类实例及引用变量、判断对象 ​

newthissuperinstanceof

异常处理 ​

trycatchfinallythrowthrows

包相关 ​

packageimport

其他修饰符 ​

nativestrictfptransientvolatileassert