🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #19578

Re: Char values

#19578
From: Steve Sommers
Date: Sat, 24 Jan 1998 00:00
70 lines
3334 bytes

--------------EF6F5684946474B3D4137A0E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Perhaps that is the correct answer, but it wasn't one of those given on
the exam:)  So apparently there is a correct answer for the maximum
number Unicode values available.  I think it must be 0 to 2^16, I just
haven't gotten confirmation for that.

Paul Murray wrote:

>  Perhaps the correct answer is that the range for char values is the
> Unicode character set (as defined by ISO blah blah blah), and leave it
> at that. The fact that Unicode characters have a numeric equivalent is
> irrelevant. That an 'A' is an ascii 65 is a relic of days when we had
> to deal with bits and bytes to do programming.
>
>
>      Steve Sommers wrote in message
>      <34C6602F.FBC70922@pop3.concentric.net>...I recently took
>      the Java Programmer's Certification exam.  On the test was a
>      question asking what the value range is for char types.  I
>      know char's are Unicode values and I know that they are
>      16-bit, but is the range 0 to 2^16 or is it like a short and
>      the range is -2^(15) - 1 to 2^(15)?
>
>      Thanks,
>
>      Steve Sommers
>


--------------EF6F5684946474B3D4137A0E
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<HTML>
<BODY BGCOLOR="#FFFFFF">
Perhaps that is the correct answer, but it wasn't one of those given on
the exam:)&nbsp; So apparently there is a correct answer for the maximum
number Unicode values available.&nbsp; I think it must be 0 to 2^16, I
just haven't gotten confirmation for that.

<P>Paul Murray wrote:
<BLOCKQUOTE TYPE=CITE>&nbsp;Perhaps the correct answer is that the range
for char values is the Unicode character set (as defined by ISO blah blah
blah), and leave it at that. The fact that Unicode characters have a numeric
equivalent is irrelevant. That an 'A' is an ascii 65 is a relic of days
when we had to deal with bits and bytes to do programming.
<BR>&nbsp;
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">Steve
Sommers<SSOMMERS@POP3.CONCENTRIC.NET> wrote in message &lt;<A HREF="mailto:34C6602F.FBC70922@pop3.concentric.net">34C6602F.FBC70922@pop3.concentric.net</A>>...I
recently took the Java Programmer's Certification exam.&nbsp; On the test
was a question asking what the value range is for <I>char</I> types.&nbsp;
I know <I>char</I>'s are Unicode values and I know that they are 16-bit,
but is the range 0 to 2^16 or is it like a <I>short </I>and the range is
-2^(15) - 1 to 2^(15)?

<P>Thanks,

<P>Steve Sommers</BLOCKQUOTE>
</BLOCKQUOTE>
&nbsp;
</BODY>
</HTML>

--------------EF6F5684946474B3D4137A0E--
Technical Details
Message-ID: <34CA420F.22A7A7E2@pop3.concentric.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34C6602F.FBC70922@pop3.concentric.net> <6abqi1$nb516@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,c3e6062d1f5f6ac2
X-Google-Attributes: gidf74b3,public
From: Steve Sommers <ssommers@pop3.concentric.net>
Subject: Re: Char values
Date: 1998/01/24
Message-ID: <34CA420F.22A7A7E2@pop3.concentric.net>
X-Deja-AN: 319055634
References: <34C6602F.FBC70922@pop3.concentric.net> <6abqi1$nb516@forums.borland.com>
Content-Type: multipart/alternative; boundary="------------EF6F5684946474B3D4137A0E"
Organization: None
Mime-Version: 1.0
Reply-To: ssommers@concentric.net
Newsgroups: borland.public.jbuilder.java.language