What is the output of this program?

class leftshift_operator

{

public static void main(String args[ ])

{

byte x = 64;

int i;

byte y;

i = x << 2;

y = (byte) (x << 2);

System.out.print(i + " " + y);

}

}

1
0, 64
2
64, 0
3
0, 256
4
256, 0

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation