*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Range of Datatypes 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 "Range of Datatypes" Watch "Range of Datatypes" New topic
Author

Range of Datatypes

Thiru Thangavelu
Ranch Hand

Joined: Aug 29, 2001
Posts: 219
Which of the following statements are true.

1) The type "int" is a 32-bit signed integer value.
2) The type "short" is a 16-bit unsigned integer value.
3) The type "char" is a 16-bit Unicode character.
4) The type "float" is a 64-bit floating point value.
5) The type "long" is a 64-bit signed integer value.


Thanks,<br />Thiru<br />[SCJP,SCWCD,SCBCD]
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
1) The type "int" is a 32-bit signed integer value.
True
2) The type "short" is a 16-bit unsigned integer value.
False - short is signed.
3) The type "char" is a 16-bit Unicode character.
True - 2 byte (16 bits) unsigned Unicode character.
4) The type "float" is a 64-bit floating point value.
False - float is 32 bits. double is 64 bits.
5) The type "long" is a 64-bit signed integer value.
True


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Range of Datatypes