What is the expected output of the following Java code? public static void…

PYQ DSSSB 2023

What is the expected output of the following Java code? public static void main(String[] args) { int a = 5; int b = 7; System.out.println("a&b = " + (a & b)); } }

  1. A.

    a&b = 5

  2. B.

    a&b = 7

  3. C.

    a&b = 35

  4. D.

    a&b = 2

Attempted by 1073 students.

Sign up free to check your answer

Sign up free

Explore the full course: Dsssb Tgt Computer Science Complete Course

Loading lesson…