JAVA标识符的命名规范 1、只能由数字、字母、下划线(_)、以及美元符号($)构成
2、不能以数字开头,如2a,2user_name1就是不可以的
3、标识符不能是保留字(如int、super,详见)
4、标识符不能是true、false、null、
附:java保留的关键字 abstract assert boolean break byte case catch char class continue default do double else enum extends final finally float for if implements import instanceof int interface long native new package private protected public return strictfp short static super switch synchronized this throw throws transient try void volatile while true false null 此外goto和const是c和c++保留字,目前java没有。