+ 4

Anyone could plz explain me the exclusive or operator in java ..

I want to know that why a minus sign is coming in my answer...according to me it should be simply 8 https://code.sololearn.com/cz8REcXC6bDj/?ref=app

3rd Apr 2017, 3:19 PM
Dolu
Dolu - avatar
4 odpowiedzi
+ 12
Run this: https://code.sololearn.com/cnMMk8BODddd/?ref=app If you need any further information, just ask.
3rd Apr 2017, 3:33 PM
Tashi N
Tashi N - avatar
+ 7
@Dolu Do you mean the minus sign in the output? It is just for text formatting, it is not used in the expression. You should take a look at the if statement before System.out.println.
3rd Apr 2017, 4:50 PM
Tashi N
Tashi N - avatar
+ 3
but why minus sign....not getting that point
3rd Apr 2017, 4:47 PM
Dolu
Dolu - avatar
+ 3
@Tashi N thank u ...got my doubt cleared😊
3rd Apr 2017, 6:21 PM
Dolu
Dolu - avatar