标识符

标识符和关键字

public class demo {
    public static void main(String[] args) {
        String demo = "class0" ;
        String Demo = "class1" ;
        //变量使用规则
        //大小写敏感
        // 不可以重名
        //可以中文
        //不可以用关键字
        //不可以用 数字/符号等起头
        System.out.println(demo);
        System.out.println(Demo);
    }
}

posted on 2021-06-17 19:48  Otischen  阅读(28)  评论(0)    收藏  举报

导航