My question uses Java as an example, but I guess it applies to probably all.
Is there any practical difference between the XOR operator (^
in Java) and the not-equal-to operator (!=
in Java), when comparing booleans?
I evaluated things here, but I just kept wondering (seems weird, two things equal)... and didn't find anything on the net. Just one discussion in some forum that ended quickly without any result.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…