What is the output of the given java code? byte x = 64, y; y = (byte) (x <<…

PYQ DSSSB 2021

What is the output of the given java code?

byte x = 64, y;
y = (byte) (x << 4);
system.out.println(y);
  1. A.

    0

  2. B.

    128

  3. C.

    256

  4. D.

    32

Attempted by 934 students.

Sign up free to check your answer

Sign up free

Explore the full course: Dsssb Tgt Computer Science Complete Course

Loading lesson…