AND (&): Both bits must be .
1010 & 1100 = 1000
OR (|): At least one bit is .
1010 | 1100 = 1110
XOR (^): Exactly one bit is .
1010 ^ 1100 = 0110
NOT (~): Flip all bits.
~1010 = ...0101 (depends on integer size)
Left shift (<<): Multiply by .
5 << 1 = 10 ()
Right shift (>>): Divide by .
5 >> 1 = 2 ()
These are operations, much faster than arithmetic on large numbers.