试题详情
单项选择题 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
  • 关注下方微信公众号,在线模考后查看

热门试题