• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

14 ^ 23

 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends..

i've code as bellow :


result : 25

I need an explanation, why the result is 25?..
sorry for basic question..

Thanks in advance..
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ^ operator performs a bitwise exclusive OR operation ... does that help?
 
Bert Bates
author
Sheriff
Posts: 8900
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just remember that bitwise operators are NOT on the SCJP 6 exam!

hth,

Bert
 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf Dittmer and Bert Bates for your reply..

Thanks for reminding me, that it is not SCJP 6 scope...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic