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); } } 结果为:()
- A、z = 42
- B、z = 44
- C、z = 45
- D、z = 46
正确答案:D
答案解析:有
微信扫一扫手机做题