title: Java: int << (-1) == 0 ？
body: <p>In java, when I move a int, no matter what value it is, to the left:</p>
  
  <pre><code>4 &lt;&lt; (-1);
  </code></pre>
  
  <p>when the offset is -1, I will always get 0.</p>
  
  <p>Why?</p>