1. Java关键字列表 (依字母排序 共50组):
abstract, assert,
boolean, break, byte,
case, catch, char, class, const, continue,
default, do, double,
else, enum, extends,
final, finally, float, for,
goto,
if, implements, import, instanceof, int, interface,
long,
native, new,
package, private, protected, public,
return,
short, static, strictfp, super, switch, synchronized,
this, throw, throws, transient, try,
void, volatile,
while
其中:
保留关键字为:goto, const
Java1.2添加的关键字:strictfp
Java1.4添加的关键字:assert
Java5.0添加的关键字:enum
2. Java保留字列表 (依字母排序 共14组)
Java保留字是指现有Java版本尚未使用,但以后版本可能会作为关键字使用:
byValue,
cast, const,
false, future,
generic, goto
inner,
null,
operator, outer,
rest,
true,
var