1. public static void main(String[] args) {
    2. //1.如果byte,short,char类型的遍历在赋值的时候,赋值的是一个常量,例如100,那么我们的jvm字段将常量赋值转换为对应的数据类型
    3. //字面量常量 100
    4. byte byteVal = 100;
    5. System.out.println("byteVal = " + byteVal);
    6. //字面量常量 19
    7. char byteValue = 19;
    8. System.out.println("byteValue = " + byteValue);
    9. //2.如果运算符操作的是字面量常量,先进行运算付操作,在将结果赋值后进行编译操作
    10. byte result = 4 + 9;
    11. }