我来请教一个简单java问题,求解答

来源:互联网 发布:福州哪里收淘宝模特 编辑:程序博客网 时间:2024/06/06 12:35
public class Bool{public static void main(String[] args){// TODO Auto-generated method stubint a = 5;int b = -5;int c = 20;/* * && 优先级高于 ||,即 && 先计算 */if ((b-- < -5) && (a++ < 5) || (c < 30)){System.out.println("HERE FIRST");}System.out.println("FIRST a is " + a);System.out.println("FIRST b is " + b);}}
为什么运行结果是:HERE FIRSTFIRST a is 5FIRST b is -6为什么b执行了--,而a没有执行++?
0 0
原创粉丝点击