Skip to main content

Unit 2 · Selection and Iteration

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?

public class BooleanOperatorsContext
{
    public static void runExample()
    {
        int a = 5;
        int b = 8;
        System.out.print(a > 3 && b < 8);
    }

    public static void main(String[] args)
    {
        runExample();
    }
}
Choose one answer.