dimanche 27 décembre 2015

How can I evaluate the bitwise operator in this condition?

I just practice some basic Java practice problems and this below shows up.

if((b2 = false) | (21 % 5)>2) return true;

So b2 is assigned with false and 1 > 2 is certainly false, but how do we evaluate "|" ? should it return true?

Aucun commentaire:

Enregistrer un commentaire