Java differences between and operator & and logical and operator &&

Java differences between and operator & and logical and operator &&

The bitwise and operator &evaluates both conditions be it true or false.

re‮ ref‬to:lautturi.com
Condition1 & Condition2

The logical and operator &&evaluates second condition only if con1 is false.

Condition1 && Condition2
Created Time:2017-08-29 19:55:30  Author:lautturi