Adobe Interview Question
Just putting example to make it clearer
final int x = -Integer.MAX_VALUE;
System.out.println(Integer.toBinaryString(x)); // prints 10000000000000000000000000000001
System.out.println(Integer.toBinaryString(x>>1)); // prints 11000000000000000000000000000000
System.out.println(Integer.toBinaryString(x>>>1)); // prints 01000000000000000000000000000000
>> is a signed right shift operator
- Anonymous March 12, 2010>>> unsigned right shift operator