class Fun { public static void main(String[] args) throws Exception { Double a = Double.NaN; boolean b = a == a; double c = a; boolean d = c == c; } }