In order to manipulate the data at the bit level, the bitwise operators are provided in Java. These operators are used for testing the bits as well as shifting them to left or right etc.
These can be applied to integer types only.That is, they can not be used along with float or double value.
All these operator except one's complement operator are binary operators. These perform the given bitwise operation on the operands.
Accordingly, the result is obtained.Shift operators shift the binary equivalent bits of the operand to respective left or right position.
These can be applied to integer types only.That is, they can not be used along with float or double value.
All these operator except one's complement operator are binary operators. These perform the given bitwise operation on the operands.
Accordingly, the result is obtained.Shift operators shift the binary equivalent bits of the operand to respective left or right position.
0 Comments:
Post a Comment