File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 4543

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: 46337
Why, on the other thread, did you think the 4th line gives a negative output?
I agree. Here's the link:
subject: ShiftWise operator
It's not a secret anymore!