Please enable JavaScript.
Coggle requires JavaScript to display documents.
java bitwise operator - Coggle Diagram
java bitwise operator
operators
|
bitwise OR
The result is 1 if one of the input is 1
&
bitwise AND
The result is 1 if both of the input is 1
^
bitwise XOR
The result is 0 if both input is either 1 or 0
~
bitwise compliment
change 1 to 0 and 0 to 1
<<
left shift
shifts all bits to the left by specified number
discards left most bit
add 0 to the right most bit
>>
signed right shift
shifts all the bits to the right by specified number
discards the right most bit
when a bit is shifted, the left most bit is replaced with sign bit
>>>
unsigned right shift
shifts all the bits to the right by specified number
discards the right most bit
replace the vacant left position with 0
what
perform operation on integer at individual bit level