asked on

I am taking a java mock exam in my exam simulator - enthuware. I am studying for a certification exam. I have approached this problem about "NaN", which I am not familiar with.

The Question is:

**Here, Option E is the correct answer according to the exam simulator.**

Since NaN means "Not a Number", it is obvious that C and D are incorrect.__But I need to know why option A is not correct in this problem?__

The Question is:

Which of the following statements about NaNs are true ?

A. Float.NaN == Float.NaN

B. Float.NaN == Double.NaN

C. Float.NaN >= 0

D. Float.NaN < 0

E. None of the above.

A. Float.NaN == Float.NaN

B. Float.NaN == Double.NaN

C. Float.NaN >= 0

D. Float.NaN < 0

E. None of the above.

Since NaN means "Not a Number", it is obvious that C and D are incorrect.

Java