Prev Next

Java / Operators

What is the difference between the Boolean & operator and the && operator?

&&&
& is the "bit-wise AND" operator. && is the "conditional logical AND" operator.
& always evaluates both arguments. && evaluates the first argument. if it is true, it then evaluates the second.

More Related questions...

Show more question and Answers...


Comments & Discussions