This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 4343

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: 38033
Why, on the other thread, did you think the 4th line gives a negative output?
I agree. Here's the link:
subject: ShiftWise operator
Similar Threads
JSP Action Buttons freez after returning from ajax call
enable/disable textbox
DHTML drop down menu - Cross Browser
Want to convert my code in method
iterate problem in struts2