This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Mock Exam Errata and the fly likes R&H Mock Q2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "R&H Mock Q2" Watch "R&H Mock Q2" New topic

R&H Mock Q2

Kevin Cary
Ranch Hand

Joined: Jan 24, 2001
Posts: 53
True or false: A signed data type has an equal number of non-zero positive and negative values available.
R&H says true, I say false.
Seems to me: byte range is -2^7 to 2^7 - 1
So there's 127 different pos values and 128 different neg values. There are more neg. then pos. Am I missing something here?
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
Are you sure they give the answer as TRUE. I thought I remembered in the 2nd edition that this question was in chapter 1 and it was false. But I could be mistaken.
In any event, you are correct.
kamal jaisingh
Ranch Hand

Joined: Feb 23, 2001
Posts: 39
check RHE second edition.
its false in tht.
Kamal J
Don't get me started about those stupid light bulbs.
subject: R&H Mock Q2
Similar Threads
Convert OutputStream to InputStream!
convert Postiive number to negative..
Roundup #305
Shifting Rules?? (+/-SRS,+/-LS+/-URS)