标识符:就是给类、接口、方法、变量等起名字的字符序列
组成规则:英文大小写字母、数字字符、美元符$和-开头,也不能包含@,空格,等其他特殊字符
注意事项:不能以数字开头、不能是java中的关键字、区分大小写常见的命名规则(见名知意)
Java关键字:
abstract continue for new switchassert default if package synchronizedboolean do goto private thisbreak double implements protected throwbyte else import public throwscase enum instanceof return transientcatch extends int short trychar final interface static voidclass finally long strictfp volatileconst float native super while
①char 基本数据类型之一,字符类型
②long 基本数据类型之一,长整数类型
③int 基本数据类型之一,整数类
④continue 回到一个块的开始处
⑤do 用在do-while循环结构中,do循环
⑥double 基本数据类型之一,双精度浮点数类型
⑦for 一种循环结构的引导词,for循环
⑧else 用在条件语句中,表明当条件不成立时的分支



