Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #36388

Re: array class names

Path csiph.com!aioe.org!.POSTED!not-for-mail
From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: array class names
Date Sun, 5 Mar 2017 19:38:12 -0500
Organization Aioe.org NNTP Server
Lines 17
Message-ID <o9ib1j$1pof$1@gioia.aioe.org> (permalink)
References <o9i72h$ppc$1@Gaia.teknon.de>
NNTP-Posting-Host PBuS014lhzVyHjLbXmo/ZQ.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.java.programmer:36388

Show key headers only | View raw


On 3/5/2017 6:30 PM, Volker Borchert wrote:
> Does anybody out there know why long[] is called "[J" and Object[]
> is called "[Ljava.lang.Object;" rather than the more obvious "[L"
> and "[Ojava.lang.Object;" (or maybe "[Rjava.lang.Object;" if 'O'
> is too similar a zero)?

It is documented what they are:

https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.3.2-200

But you are asking about why these letters were chosen.

That probably require someone working for SUN back in the mid 90's
to answer.

Arne

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

array class names v_borchert@despammed.com (Volker Borchert) - 2017-03-05 23:30 +0000
  Re: array class names Arne Vajhøj <arne@vajhoej.dk> - 2017-03-05 19:38 -0500
    Re: array class names Arne Vajhøj <arne@vajhoej.dk> - 2017-03-05 19:41 -0500
      Re: array class names "Tristan B. Kildaire" <deavmi@disroot.org> - 2017-03-22 19:30 +0200
        Re: array class names lewbloch@gmail.com - 2017-03-23 15:46 -0700

csiph-web