|
|

Meaning of "precedence"

Precedence of operators

Meaning of "associativity"

Boolean Operators

Tricky question!

With b and c of type int, the following expression is supposed to mean "b == 0 exactly when c == 0":

b == 0   ==   c == 0

That is, if b is 0, then c is 0, and if c is 0, then b is 0.

Is it a legal Java expression? What does it mean?

In the expression below, put two pairs of parentheses in this expression to show the order in which the three operators == are evaluated. Click the checkbox if you think it's legal. Then Check your answer.

Feedback

 


checked means you think it's legal
|
|
  
Help | Glossary
© 2002 Copyright Cornell University