Java Topic Practice
Short-Circuit Logic
Short-Circuit Logic MCQ Practice
Question 1 of 15
Answered 0 of 15
Choose one answer.
What is printed by the following code segment?
int total = 18;
int denom = 0;
int limit = 2;
boolean ok = denom != 0 && total / denom > limit;
System.out.print(ok);