aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes shift operators Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "shift operators" Watch "shift operators" New topic
Author

shift operators

madhu bindu
Greenhorn

Joined: Jan 09, 2002
Posts: 3
Can anybody exaplin me whats the difference between signed and unsigned right shift operations for negative numbers?I am getting confused alot.for example int i=-5;i>>2=? and also i>>>2=?
Thanks in advance.


bindu
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
madhu,
this topic has been discussed an incredible amount of times. Please learn how to use our search engine, type the keywords "shift operators" and I guarantee you will find your answer


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
madhu bindu
Greenhorn

Joined: Jan 09, 2002
Posts: 3
Thanks Valentin.This is the first time I am using this.Let me try that.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: shift operators