0

I have read some other answers but couldn't come to an conclusion.

int a=1; //00000000 00000000 00000000 00000001
System.out.println(a<<32);
//My assumption a<<32 -> 00000000 00000000 
 00000000  00000000

output: 1

But I expected the output to be 0 but why do we get output as 1 instead as 0? Thanks in advance.

Never
  • 41
  • 4

0 Answers0