程序输出:
class Test {
public static void main(String[] args) {
boolean x = true;
boolean y = false;
short z = 42;
//if(y == true)
if((z++ == 42) && (y = true)) z++;
if((x = false) || (++z == 45)) z++;
System.out.println("z=" + z);
}
}
结果为:z=46