What function does the ^
(caret) operator serve in Java?
When I try this:
int a = 5^n;
...it gives me:
Lot many people have already explained about what it is and how it can be used but apart from the obvious you can use this operator to do a lot of programming tricks like
Lot many such tricks can be done using bit wise operators, interesting topic to explore.