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:
Which of the following statements about NaNs are true ?
Here, Option E is the correct answer according to the exam simulator.
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. But I need to know why option A is not correct in this problem?