What's the difference between XOR and NOT-EQUAL-TO?
问题 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. 回答1: For Boolean values, they mean the same thing - although there's a compound