title: unsigned right Shift '>>>' Operator in Java
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4813909/why-is-1-32-1">Why is (-1 &gt;&gt;&gt; 32) = -1?</a>  </p>
  </blockquote>
  
  
  
  <p>The unsigned right shift operator inserts a 0 in the leftmost. So when I do</p>
  
  <pre><code>System.out.println(Integer.toBinaryString(-1&gt;&gt;&gt;30))
  </code></pre>
  
  <h2>output</h2>
  
  <pre><code>11
  </code></pre>
  
  <p>Hence, it is inserting 0 in the left most bit.</p>
  
  <pre><code>System.out.println(Integer.toBinaryString(-1&gt;&gt;&gt;32))
  </code></pre>
  
  <h2>output</h2>
  
  <pre><code>11111111111111111111111111111111
  </code></pre>
  
  <p>Shouldn't it be 0?</p>