Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #37124 > unrolled thread
| Started by | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| First post | 2017-08-10 10:36 -0400 |
| Last post | 2017-08-10 10:29 -0500 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.java.programmer
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: A small quiz Eric Sosman <esosman@comcast-dot-net.invalid> - 2017-08-10 10:36 -0400
Re: A small quiz Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2017-08-10 10:29 -0500
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Date | 2017-08-10 10:36 -0400 |
| Subject | Re: A small quiz |
| Message-ID | <omhqov$uk9$1@dont-email.me> |
On 8/10/2017 10:19 AM, Stefan Ram wrote:
> Can you correctly predict the output of this program?
Yes.
> public final class Main
> { public static void main( final java.lang.String[] args )
> { java.lang.System.out.println
> ( Double.valueOf( Double.NaN ).equals
> ( Double.valueOf( Double.NaN ))); }}
... but I'm somewhat surprised you wrote `Double' -- four
times! -- instead of `java.lang.Double'.
--
esosman@comcast-dot-net.invalid
Twelve hundred fifty-nine days to go.
[toc] | [next] | [standalone]
| From | Knute Johnson <nospam@rabbitbrush.frazmtn.com> |
|---|---|
| Date | 2017-08-10 10:29 -0500 |
| Message-ID | <omhttc$8ct$1@dont-email.me> |
| In reply to | #37124 |
On 8/10/2017 9:36 AM, Eric Sosman wrote:
> On 8/10/2017 10:19 AM, Stefan Ram wrote:
>> Can you correctly predict the output of this program?
>
> Yes.
>
>> public final class Main
>> { public static void main( final java.lang.String[] args )
>> { java.lang.System.out.println
>> ( Double.valueOf( Double.NaN ).equals
>> ( Double.valueOf( Double.NaN ))); }}
>
> ... but I'm somewhat surprised you wrote `Double' -- four
> times! -- instead of `java.lang.Double'.
>
He is being a little inconsistent isn't he?
knute...
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web