Java Topic Practice
Boolean Operators
Boolean Operators MCQ Practice
Question 1 of 15
Answered 0 of 15
Choose one answer.
What is printed by the following code segment?
int likes = 18;
int shares = 5;
int comments = 3;
boolean flag = (likes > 20 && shares < 10) || comments == 4;
System.out.print(flag);