This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Java in General and the fly likes ShiftWise operator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "ShiftWise operator" Watch "ShiftWise operator" New topic

ShiftWise operator

Vidya Lakshman

Joined: Apr 09, 2008
Posts: 11

what is the output of the above code & explain the working?
Any help is highly appreciated.

Ankit Dan
Ranch Hand

Joined: Aug 31, 2012
Posts: 47

this will help you analyse..
Matthew Brown

Joined: Apr 06, 2010
Posts: 4517

Vidya Lakshman wrote:what is the output of the above code & explain the working?

The best way for you to find out the output would be to run it yourself.

So run it, and try and work out why the output is what it is. Then come back to us if you can't work it out, and we can help you.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 41079
Why, on the other thread, did you think the 4th line gives a negative output?
I agree. Here's the link:
subject: ShiftWise operator