Kérdés: Given the following Java code: class Test2 { public…

en Normál / Egy választás / 100% / 0% / 0%
Given the following Java code: class Test2 { public static void main(String [] args) { boolean x = true; boolean y = false; short z = 42; if((x == true) && (y = true)) z++; if((y == true) || (++z == 44)) z++; System.out.println("z = " + z); } } What is the result of the compilation and running?
A perc kérdése