短路运算 int c = 5; boolean d = (c<4) && (c++>4); System.out.println(d); System.out.println(c); 输出为:d = false,c = 5 原因:&&运算符前面是false,此时运行到&&时发生短路,后面的语句不再运行。