Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #36387 > unrolled thread
| Started by | v_borchert@despammed.com (Volker Borchert) |
|---|---|
| First post | 2017-03-05 23:30 +0000 |
| Last post | 2017-03-23 15:46 -0700 |
| Articles | 5 — 4 participants |
Back to article view | Back to comp.lang.java.programmer
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
| From | v_borchert@despammed.com (Volker Borchert) |
|---|---|
| Date | 2017-03-05 23:30 +0000 |
| Subject | array class names |
| Message-ID | <o9i72h$ppc$1@Gaia.teknon.de> |
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)? -- "I'm a doctor, not a mechanic." Dr Leonard McCoy <mccoy@ncc1701.starfleet.fed> "I'm a mechanic, not a doctor." Volker Borchert <v_borchert@despammed.com>
[toc] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2017-03-05 19:38 -0500 |
| Message-ID | <o9ib1j$1pof$1@gioia.aioe.org> |
| In reply to | #36387 |
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
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2017-03-05 19:41 -0500 |
| Message-ID | <o9ib7k$1pof$2@gioia.aioe.org> |
| In reply to | #36388 |
On 3/5/2017 7:38 PM, Arne Vajhøj wrote: > 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. BTW, you are not the only one wondering: http://stackoverflow.com/questions/14882998/in-java-serialisation-why-does-j-signify-a-long-and-l-signify-an-object Arne
[toc] | [prev] | [next] | [standalone]
| From | "Tristan B. Kildaire" <deavmi@disroot.org> |
|---|---|
| Date | 2017-03-22 19:30 +0200 |
| Message-ID | <oaucb0$cqb$1@gioia.aioe.org> |
| In reply to | #36389 |
On 2017-03-06 02:41 AM, Arne Vajhøj wrote: > On 3/5/2017 7:38 PM, Arne Vajhøj wrote: >> 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. > > BTW, you are not the only one wondering: > > http://stackoverflow.com/questions/14882998/in-java-serialisation-why-does-j-signify-a-long-and-l-signify-an-object > > > Arne > > Feels like the question of why imaginary numbers in Python start with j and not i. The answer though, I do not know.
[toc] | [prev] | [next] | [standalone]
| From | lewbloch@gmail.com |
|---|---|
| Date | 2017-03-23 15:46 -0700 |
| Message-ID | <fdc6724e-a675-4ffc-b775-7e583b7de8bd@googlegroups.com> |
| In reply to | #36417 |
Because `j` is the standard engineering symbol for the square root of negative one.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web