aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes please help me with this question... I have my exam next week Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "please help me with this question... I have my exam next week" Watch "please help me with this question... I have my exam next week" New topic
Author

please help me with this question... I have my exam next week

Preethi Tushar
Greenhorn

Joined: Oct 14, 2004
Posts: 16
Hello,

I am new to this forum. I became a member of this forum today.
Somebody plz help me with this question. I have my exam next week.

Question:
Which is the legal range for short?

a. -2^7 to 2^7 - 1
b. -2^8 to 2^8
c. -2^15 to 2^15 - 1
d. -2^16 to 2^16 - 1
e. 0 to 2^16 - 1

If somebody knows the ans plz explain how?

Regards,
Preethi

(inserted "^" to indicate to "to the power of" )
[ October 14, 2004: Message edited by: Barry Gaunt ]
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
You will find your answer, and much more, here!

Look for "Primitives".
[ October 14, 2004: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Preethi Tushar
Greenhorn

Joined: Oct 14, 2004
Posts: 16
Thanks for the info.
I got the answer. Actually where I saw the question, it didn't have the symbol ^ between 2 and 15, so I read it as two hundred and fifteen. I think there was some printing mistake.

Regards,
Preethi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: please help me with this question... I have my exam next week