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 wont.
More Related questions...