By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,468 Members | 1,865 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,468 IT Pros & Developers. It's quick & easy.

Largest Ascii

P: n/a
what is the literal for the largest character value in java?
ie.

111 in binary is representing 7 (4+2+1) <-- this is 3 bit

now java is 32 or 64 bit

what is the largest character value ?

thanks
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
news1.on.sympatico.ca wrote:
what is the literal for the largest character value in java?
ie.

111 in binary is representing 7 (4+2+1) <-- this is 3 bit

now java is 32 or 64 bit

what is the largest character value ?


The largest value of the primitive type 'char' is 65535 in decimal, ffff in
hexadeximal, 177777 in octal, 1111111111111111 in binary. For reasons havig
to do with Unicode/ISO 10646 you would normall not use anything higher than
65533/fffd/177775/1111111111111101.

There are classes under java.nio which can handle much larger ranges, which
is useful if you are a Chinese philologist or an ethnographer aboard Capt/
Picard's Enterprise.

Hence the term, Enterprise Edition. :)

--
Chris Gray ch***@kiffer.eunet.be

Jul 17 '05 #2

P: n/a
thx for the help

i appreciate it
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.