一、变量命名规则:
(1)只能包含 字母、数字、_ 和$ ,并且不能以数字开头
(2)建议: ①“见名知意”;
②“驼峰命名法”:score ,myScore , myMathScore
二、基本数据类型:
(1)int: 整型,4个字节,
(2)long : 长整型,8个字节,数字后要加L或l
(3)double:浮点型,8个字节,
(4)boolean:布尔型,1个字节,只能取true或false,
(5)char:字符型,2个字节,Unicode编码格式;
ASCII码:'a'——97 'A'——65 '0'——48