This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes quick question on Bitwise operations... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "quick question on Bitwise operations..." Watch "quick question on Bitwise operations..." New topic
Author

quick question on Bitwise operations...

Wolfgang Obi
Ranch Hand

Joined: Dec 05, 2005
Posts: 134


can someone please explain to me why i get true as a return value here?

thank you

-W.O.
Anton Uwe
Ranch Hand

Joined: Jan 10, 2007
Posts: 122
argument(=4):

000....00100


3:

000....00011

bitwise AND will give

000....00000 == 0
Wolfgang Obi
Ranch Hand

Joined: Dec 05, 2005
Posts: 134
Originally posted by Anton Uwe:
argument(=4):

000....00100


3:

000....00011

bitwise AND will give

000....00000 == 0


thanks
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: quick question on Bitwise operations...
 
Similar Threads
Passing the method's return as argument
Fill in the blank
Purpose for the Overloading
Generics
compareTo()