快乐学习 一个网站喵查铺子(catpuzi.com)全搞定~

【单选题】现有:     1.  class  Test4  {     2.     public static void main (String  []  args)  {     3.    boolean x=true;     4.    boolean y=false;     5.    short z=42;     6.     7.    if((z++==42)  &&  (y=true))   z++;     8.    if((x=false)  ||    (++z==45))     z++;     9.     10.    System. out.println(¨z=”+z);     11.    }     12.  }   结果为:

热门题目 网课答案 2023-03-09 扫描二维码

题目:【单选题】现有:
    1.  class  Test4  {
    2.     public static void main (String  []  args)  {
    3.    boolean x=true;
    4.    boolean y=false;
    5.    short z=42;
    6.
    7.    if((z++==42)  &&  (y=true))   z++;
    8.    if((x=false)  ||    (++z==45))     z++;
    9.
    10.    System. out.println(¨z=”+z);
    11.    }
    12.  }
  结果为:

A、z=42
B、z=44
C、z=45
D、z=46

喵查答案:z=46
喜欢 (0)
关于作者: