java operators
What does this sign "^" do in java?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Gopi ChandPosted May 21, 2015, 4:17 PM
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:
Gopi ChandPosted May 22, 2015, 2:32 AM
Your always welcome any time in our community.
Thank you.
pari doostiPosted May 22, 2015, 1:51 AM
Abhishek JaiswalPosted May 21, 2015, 1:09 PM