Why does this comparsion return false?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/8819738/why-does-double-nan-double-nan-return-false">Why does Double.NaN==Double.NaN return false?</a>  </p>
</blockquote>



<p>This is purely out of curiosity.</p>

<p>I did something like this: </p>

<pre><code>public static void main(String args[]) throws Exception {
        System.out.println(Double.NaN==Double.NaN);
    }
</code></pre>

<p>The output is <code>false</code>. Shouldn't this return <code>true</code>?</p>

<p>Why is it so?</p>
