🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Char values

#19570
From: Paul Murray
Date: Fri, 23 Jan 1998 00:00
70 lines
3094 bytes
This is a multi-part message in MIME format.

------=_NextPart_000_00DE_01BD2834.CA7F6940
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

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)?=20
    Thanks,=20
   =20
    Steve Sommers=20
   =20

------=_NextPart_000_00DE_01BD2834.CA7F6940
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>Perhaps the correct answer is that the range for char values is the =
Unicode=20
character set (as defined by ISO blah blah blah), and leave it at that. =
The fact=20
that Unicode characters have a numeric equivalent is irrelevant. That an =
'A' is=20
an ascii 65 is a relic of days when we had to deal with bits and bytes =
to do=20
programming.<BR>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">
    <DIV>Steve Sommers<SSOMMERS@POP3.CONCENTRIC.NET> wrote in message =
&lt;<A=20
    =
href=3D"mailto:34C6602F.FBC70922@pop3.concentric.net">34C6602F.FBC70922@p=
op3.concentric.net</A>&gt;...</DIV>I=20
    recently took the Java Programmer's Certification exam.&nbsp; On the =
test=20
    was a question asking what the value range is for <I>char</I> =
types.&nbsp; I=20
    know <I>char</I>'s are Unicode values and I know that they are =
16-bit, but=20
    is the range 0 to 2^16 or is it like a <I>short </I>and the range is =
-2^(15)=20
    - 1 to 2^(15)?=20
    <P>Thanks,=20
    <P>Steve Sommers </P></BLOCKQUOTE></BODY></HTML>

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

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,c3e6062d1f5f6ac2
X-Google-Attributes: gidf74b3,public
From: "Paul Murray" <pmurray@bigpond.com>
Subject: Re: Char values
Date: 1998/01/23
Message-ID: <6abqi1$nb516@forums.borland.com>
X-Deja-AN: 318775521
References: <34C6602F.FBC70922@pop3.concentric.net>
Content-Type: multipart/alternative; boundary="----=_NextPart_000_00DE_01BD2834.CA7F6940"
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: N/A
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language