java && & AND logic operation and the difference

Both have said the operation, the same is true really, in case of false or false

&& short-circuit function, for the front directly behind the budget is not false expression is false;

& Bitwise operators may also be used, when both sides of the expression is not a boolean operators &, & represents a bitwise AND operation, we typically
use to communicate with one 0x0f & integer arithmetic, to obtain the lowest bit of the integer 4 bits, e.g., as a result of 0x31 & 0x0f 0x01
 

Guess you like

Origin www.cnblogs.com/SunshineKimi/p/12227635.html