int value1 = 5; int value2 = 7; boolean bool1 = true; boolean bool2 = false; if (bool1 && (( value1 < value2 ) || bool2 ) && !(bool2)) { System.out.println("Result set one"); } else { System.out.println("Result set two"); }
int value2 = 7;
boolean bool1 = true;
boolean bool2 = false;
if (bool1 && (( value1 < value2 ) || bool2 ) && !(bool2)) {
System.out.println("Result set one");
} else {
System.out.println("Result set two");
}
it looks considering that bool1 is on the left side of a short-circuit operator.
B is incorrect.
My OCA Mock
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.