I am having a hard time understanding the >>>
bitwise operator in java .
int a = 60;
int c = 0;
c = a >>> 2;
System.out.println("a >>> 2 = " + c );
Result is 15
But how does it become 15 ?
I am having a hard time understanding the >>>
bitwise operator in java .
int a = 60;
int c = 0;
c = a >>> 2;
System.out.println("a >>> 2 = " + c );
Result is 15
But how does it become 15 ?
60 in binary is 111100. Right-shift two and you get 1111. That's 15