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

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -