title: How does bitshifting work in Java?
body: <p>I have this statement:</p>
  
  <blockquote>
    <p>Assume the bit value of byte <code>x</code> is 00101011. what is the result of <code>x&gt;&gt;2</code>?</p>
  </blockquote>
  
  <p>How can I program it and can someone explain me what is doing?</p>