java - How && if loop Expression evaluation? -
in evaluating expression (x==y && a<b) boolean expression x==y evaluated first , a<b evaluated. true or false????
please explain working same. quite confused if expression.
for && (conditional-and) :-
x==y evaluates first , if comes true evaluates a<b. conditional-and evaluate left right.
and if use & operatore :- (and operator)
in case both condition evaluated. irrespective of first condition (left condition) fail or pass.
Comments
Post a Comment