Multiple choice

Which of the following symbols is used for representing the XOR operator in Java?

  1. ~

  2. &

  3. ^

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The ^ operator is used for representing the XOR operator in Java.