/**
* 编译器对常量的优化二
* 对于byte/short/char来说,当这三种数据类型进行计算的时候
* 会自动提升成int类型
* 编译器对于常量的计算,是自动完成的,不会放到jvm中去运行
*/
public class Demo02 {
public static void main(String[] args) {
byte result = 13;
}
}
08 JAVA编译器对常量的优化二
最新推荐文章于 2022-06-09 18:00:36 发布