Specifications
Sun Services
Java™ Programming Language
Module 4, slide 11 of 31
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Bitwise Logical Operators
• The integer bitwise operators are:
~ – Complement & – AND
^ – XOR | – OR
• Byte-sized examples include:
0001 1111
1110 0000
~
00 0 01111
0001 1111
0000 011 1
&
00 0 01111
0001 1111
|
0011 1111
00 0 01111
0001 1111
00000111
^










