Skip to main content

Java Topic Practice

Compound Conditions

Compound Conditions MCQ Practice

Question 1 of 15

Answered 0 of 15

Choose one answer.

What is printed by the following code segment?

int a = 18;
int b = 3;
boolean ok = a > 5 && b < 2;
System.out.print(ok);
Choose one answer.