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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: shift operators
 
Similar Threads
what is the correct translation of this ALGOL 60 code to Java?
regarding Shift Operators
Help Me Out With Shift Operators...
right shift
shift