Binary Representation and the Bitwise Operations
- The int data type in Java is a 32 bit
(4 byte) number independent of the platform. An integer value ranges
from -2147483648 to 2147483647, inclusive. See the Java
Language Specification. This applet shows the binary representation
of an integer.
- This applet demonstrates the use of bitwise
operators: AND (&), Inclusive OR ( | ), Exclusive OR
( ^ ), and Complement
( ~ ) operations.
- This applet shows the
bitwise shift operators: Left Shift ( << ), Right
Shift with sign extension ( >> ), and Right Shift with zero extension
( >>> ).