1. And operation (&): the same 1 only take 1, otherwise are 0, namely 1 & 0 = 0 0 & 0 = 0 1 & 1 = 1 2. Or operation (|) : there are 1 to 1 1 1 0 | | 0 = 0 = 0 0 | 1 = 1 3. (^) of an exclusive or operation: different 1, with 0 or 1 1 = 0 0 ^ ^ 0 = 0 0 | | 0 = 1 = 1 1 1 4. Invert operation (~) : invert operation by bitCopy the code