Java : Bitwise Logical Operators
Java : Bitwise Logical Operators
Java supports several bitwise operators, which can be applied to the integer types, long, int, short, char, and byte. These Bitwise operator works on bits and performs the bit-by-bit operation.
For Example: Assume if a = 60 and b = 13; now in the binary format they will define follows:
a = 0011 1100 b = 0000 1101 ----------------- a&b = 0000 1100 a|b = 0011 1101 a^b = 0011 0001 ~a = 1100 0011
H…
View On WordPress

















