关键词与标识符
public class Domo01 {
public static void main(String[] args) {
String Man = "男人";
//这里的Man为标识符、标识的首字母只能为A~Z,a~z,$和_,如果不是将会报错,如下为错误示范
//String #1 = "ZhiFon";
//String 1A = "ZhiFon";
//标识符区分大小写, Son 不等于 son
//String Son = "ZhiFon";
//String son = "ZhiFen";
//System.out.println(Son);
//System.out.println(son);
//不能使用关键字作为标识符(常见的关键字如:class,if),下面为错误示范
//String class = "ZhiFon";
//System.out.println(class);
}
}