Java 关键字和保留字列表如下,不要使用这些值作为变量名。true/false/null,虽然看起来像关键字,但他们只是字面量,但是也不能把他们作为变量名。
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