The Java programming language also provides operators that perform bitwise and bit shift operations on integral types. ... For example, a byte contains 8 bits; applying this operator to a value whose bit pattern is "00000000" would change its pattern to "11111111".