What does the ^ operator do in Java? - Stack Overflow

What does the ^ operator do in Java? - Stack Overflow

瀏覽:940
日期:2025-04-24
in Java is the exclusive-or ("xor") operator. Let's take 5^6 as example: (decimal) ( binary) 5 = 101 6 = 110 ------------------ xor 3 = 011. This the truth table for bitwise ......看更多