What is the value set for NaN
, POSITIVE_INFINITY
and some other constants in Double
class? From the source code, I see that they are set to themselves, but how does that work?
public final class Double extends Number implements Comparable<Double> {
public static final double POSITIVE_INFINITY = POSITIVE_INFINITY;
public static final double NEGATIVE_INFINITY = NEGATIVE_INFINITY;
public static final double NaN = NaN;
public static final double MAX_VALUE = MAX_VALUE;
public static final double MIN_VALUE = MIN_VALUE;
...
}
Thanks.