Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #37124
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: A small quiz |
| Date | 2017-08-10 10:36 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <omhqov$uk9$1@dont-email.me> (permalink) |
| References | <quiz-20170810151808@ram.dialup.fu-berlin.de> |
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.
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll 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