下面程序结果为:( )
class Test4 {
public static void main(String[] args) {
boolean x = true;
boolean y = false;
short z = 42;
if ((z++ == 42) && (y = true)) z++;
if ((x = false) || (++z == 45)) z++;
System.out.println("z=" + z);
}
}z=42
z=44
z=45
z=46
++在前,先加1再计算
++在后,先计算再加1
++在后,先计算再加1