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


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

Re: A small quiz

From Knute Johnson <nospam@rabbitbrush.frazmtn.com>
Newsgroups comp.lang.java.programmer
Subject Re: A small quiz
Date 2017-08-10 10:29 -0500
Organization A noiseless patient Spider
Message-ID <omhttc$8ct$1@dont-email.me> (permalink)
References <quiz-20170810151808@ram.dialup.fu-berlin.de> <omhqov$uk9$1@dont-email.me>

Show all headers | View raw


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...

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


Thread

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

csiph-web