具有專門的意義和用途,不能當(dāng)作一般的標(biāo)識(shí)符使用,這些標(biāo)識(shí)符稱為保留字(reserved word),也稱為關(guān)鍵字,下面列出了java語言中的所有保留字:
abstract,break,byte,boolean,catch,case,class,char,continue,default,double,do,else,extends,false,final,float,for,finally,if,import,implements,int,interface,instanceof,long,length,native,new,null,package,private,protected,public,return,switch,synchronized,short,static,super,try,true,this,throw,throws,threadsafe,transient,void,while 。 eq\m
java語言中的保留字均用小寫字母表示。
abstract,break,byte,boolean,catch,case,class,char,continue,default,double,do,else,extends,false,final,float,for,finally,if,import,implements,int,interface,instanceof,long,length,native,new,null,package,private,protected,public,return,switch,synchronized,short,static,super,try,true,this,throw,throws,threadsafe,transient,void,while 。 eq\m
java語言中的保留字均用小寫字母表示。
保留字(reserved word):保留字是為java預(yù)留的關(guān)鍵字,他們雖然現(xiàn)在沒有作為關(guān)鍵字,但在以后的升級(jí)版本中有可能作為關(guān)鍵字。
關(guān)鍵字列表
abstract boolean break byte case
catch char class continue default
do double else extends false
final finally float for if
implements import instanceof int interface
long native new null package
private protected public return short
static super switch synchronized this
throw throws transient true try
void volatile while
保留字
const,goto
所有的關(guān)鍵字都是小寫
friendly,sizeof不是java的關(guān)鍵字