Java operators
What does this sign "^" do in java?
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Gopi ChandRank #262 · 9.6K reputationPosted May 21, 2015, 12:17 PM EDT
This operators basically works on bits and proceed bit by bit for any type of operation like "^", "&", "|", etc.
The sign "^" is known as Binary Exclusive OR (XOR) operator that copies the bit of only one operand at a time.
For example:
Abhishek JaiswalRank #126 · 17.5K reputationPosted May 21, 2015, 9:09 AM EDT
pari doosti4 reputationPosted May 21, 2015, 9:51 PM EDT
Gopi ChandRank #262 · 9.6K reputationPosted May 21, 2015, 10:32 PM EDT
Your always welcome any time in our community.
Thank you.