Prev Next

Java / Operators

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

For Boolean arguments, & works as the (unconditional) "logical AND" operator "&" always evaluates both arguments.

"&&" is defined for two boolean arguments. It is the "conditional logical AND" operator. "&&" ealuates the first argument. if it is true, it then evaluates the second otherwise it won’t.

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...

Data types

Comments & Discussions