Question: Given the following Java code: class Test2 { public…
en Normal / Single choice / 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?
Question of the minute