站内搜索: 请输入搜索关键词

当前页面: 开发资料首页J2SE 专题java到底有哪几个保留字?

java到底有哪几个保留字?

摘要: java到底有哪几个保留字?


就true false null这三个?

其他48个关键字?


你所谓的保留字是指什么?
goto应该算一个


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


goto



好的单词都被抓去当保留字了 :(


关键字(keywords)
保留字(reserved words)

2楼辛苦了,那48个应该属于关键字

我就想知道null,goto,true,false这几个怎么分类?

好像考试就喜欢考这个


Here-#39;s a list of keywords in the Java language. These words are reserved — you cannot use any of these words as names in your programs. true, false, and null are not keywords but they are reserved words, so you cannot use them as names in your programs either.

摘自http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html

它上面列出了50个Keywords,并指出了3个reserved words


关键字(keywords)

abstract continue for new switch
assert*** default goto* package synchronized
boolean do if private this
break double implements protected throw
byte else import public throws
case enum**** instanceof return transient
catch extends int short try
char final interface static void
class finally long strictfp** volatile
const* float native super while

保留字(reserved words)

true, false, null

thx:shine333(enihs)


↑返回目录
前一篇: 掌握数据结构和算法的知识很重要吗?
后一篇: 请教java高手,来帮我解决一下这个问题!急……