This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes bit representation 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 "bit representation" Watch "bit representation" New topic
Author

bit representation

roja potti
Greenhorn

Joined: Mar 30, 2004
Posts: 15
1111 1111 1111 1111 1111 1111 1111 1010
how is this bit pattern interpreted as -6
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
Originally posted by roja potti:
1111 1111 1111 1111 1111 1111 1111 1010
how is this bit pattern interpreted as -6

Read this entry in my blog, the SCJP Tipline.
Corey


SCJP Tipline, etc.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: bit representation
 
Similar Threads
Shift Operator
2's compliment
Bitwise
right shift register with sign bit >>
Negative Value of Binary Complements