Tag: 散列哈希码

为什么XOR经常用在java hashCode()中,但是另一个按位运算符很less被使用?

我经常看到类似的代码 int hashCode(){ return a^b; } 为什么是异或?