代码如下: int a = 0; int b = a << 3 + 4; system.out.println(a); 输出结果 0 原因: 加号运算的优先级高于<<运算,所以上式的含义为 a << (3 + 4) ,所以为0