then是java關鍵字嗎
then不是java關鍵字,也不是java保留字。
Java 關鍵字列表(51個關鍵字,2個保留字):
訪問控制:private protected public
定義類、接口、抽象類和實現(xiàn)接口、繼承類的關鍵字、實例化對象:class abstact interface extends implements new
修飾方法、類、屬性和變量:static final super this native strictfp synchronized transient volatile
程序控制語句:break continue return do while if else for instanceof switch case defautl
錯誤處理:try catch final throw throws assert
包相關:import package
基本類型:boolean byte char double float int long short null true false enum
變量引用:super this void
保留字:const goto
正確識別java語言的關鍵字(keyword)和保留字(reserved word)是十分重要的。Java的關鍵字對java的編譯器有特殊的意義,他們用來表示一種數(shù)據(jù)類型,或者表示程序的結構等。保留字是為java預留的關鍵字,他們雖然現(xiàn)在沒有作為關鍵字,但在以后的升級版本中有可能作為關鍵字。
注意點
識別java語言的關鍵字,不要和其他語言如c/c++的關鍵字混淆。
所有的關鍵字都是小寫
php中文網,大量的免費Java入門教程,歡迎在線學習!