java基础标识符和关键字
关键字
以下是常用关键字
abstract assert
boolean break byte
case catch char class constcontinue
default do double
elseenum extends
final finally floatfor
goto
if implements importinstanceof int interface
long
nativenew
package private protected publicreturn
strictfp short static superswitch synchronized
this throw throwstransient try
void volatile
while
标识符
1.类名,变量名,方法名都被称为标识符。
2.命名规则:
以字母大小写,下划线,美元符号,数字命名,但是数字不可放在开头。不能使用变量名或者方法名。