Don't confuse &&
, which is the short-circuit logical and, with &
, which is the uncommon bitwise and. Altho the bitwise and can also be used with boolean operands, this is extremely rare and is almost always a programming error.
A java blog with a collection of examples and tutorials on Java and related technologies. (Under maintenance with continuous updates) Be in touch with java jazzle or k2java.blogspot.com.
Sunday, May 22, 2011
&& vs & operator
Labels:
Bitwise,
bitwise operators,
difference,
java,
logical,
operators
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment