Java的关键字

来源:互联网 发布:快乐码字软件 编辑:程序博客网 时间:2024/03/29 01:58

 

一、原始数据类型
-byte
-short
-int
-long
-float
-double
-char
-boolean
 
二、循环关键字
-do
-while
-for
-break
-continue
 
三、分支关键字
-
if
-else
-switch
-case
-default
-break
 
四、 方法,变量和类修饰符
-private
-public
-protected
-final
-static
-abstract
-synchronized
native
 
五、异常处理
try
-catch
-finally
-throw
-throws
 
六、对象相关关键字
-new
-extends
-implements
-class
-instanceof:if(t instanceof ClassT){}对象是否属于某一个特定的类
-this
-super
 
七、常量
false
true
null
 
八、方法相关关键字
return
void
 
九、包相关关键字
import
package