单项选择题

classTest4{publicstaticvoidmain(String[]args){booleanx=true;booleany=false;shortz=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
微信扫码免费搜题