###### Advanced Java

####
Interesting bit operations in JAVA

&, |, ^, ~ What do these symbols mean? What's the magical effect? Let's feel their magic together~When we look at some source code, we often see symbols such as &, |, ^, ~, these are bitwise operators.Bit arithmetic is to directly operate on a reshaped binary bit. The efficiency is much higher than that of addition, subtraction, multiplication and division, so it is often used in performance-sensitive scenarios.& And operationIn the binary format, each bit (1 or 0) of the two numbers