Need clarification regarding AND OR precedence in the if statement:
-
if ((a||b) && (c) && (d))
which takes higher precedence in this and -
if (a||b && (c) && (d))
which takes higher precedence in this
I am working in Java. It might be an easy one but I got a little confused. I think it will be helpful if someone can explain it. Thanks in advance.
I am writing a program with and or condition and need to know order to cover all the cases correctly. Need to know which alphabet and which condition will be executed in above statements.