File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes 14 ^ 23 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "14 ^ 23" Watch "14 ^ 23" New topic
Author

14 ^ 23

Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

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..

Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39529
    
  27
The ^ operator performs a bitwise exclusive OR operation ... does that help?


Ping & DNS - updated with new look and Ping home screen widget
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8764
    
    5
Just remember that bitwise operators are NOT on the SCJP 6 exam!

hth,

Bert


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Thanks Ulf Dittmer and Bert Bates for your reply..

Thanks for reminding me, that it is not SCJP 6 scope...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: 14 ^ 23
 
Similar Threads
Overriding problem
pass by value?
help me needed
Hi, I want to color byte array of image pixels with any color say Color(25,25,50). please help.
How to evaluate the expression 14^23