title: Java bitwise comparison of a byte
body: <p>I have a value DB of 3 bytes (DB_1, DB_2, DB_3).
  I need to check DB_3 for specific bits. For example I have to see if
   <code>DB_3 == 11X0XXXX</code>
  Where only bit 4, 6 and 7 should be checked. Bits marked as <code>X</code> can take any value and should not be checked. I am not familiar with Bit operations in Java and glad for any help!
  Thanks!</p>