Boolean Operator Precedence
Develop code to represent compound Boolean expressions and determine the result of these expressions.
What is printed as a result of executing this code segment?
boolean a = true;
boolean b = false;
boolean c = true;
System.out.println(a && b || c);
System.out.println(a && (b || c));
A
false
false
B
false
true
C
true
true
D
true
false
Question Leaderboard
Not enough data yet to show leaderboard.
APFIVE