The Class Double
The following is the declaration of class java.lang.Double. This class implements the Comparable interface, which has been updated to be a generic interface. Apart from the appetizer in this chapter, we defer further explanation of generics until Chapter 15.
public final class java.lang.Double extends java.lang.Number implements java.lang.Comparable { // constructors public java.lang.Double(double); public java.lang.Double(java.lang.String) throws java.lang.NumberFormatException; public static final double POSITIVE_INFINITY = 1.0 / 0.0; public static final double NEGATIVE_INFINITY = -1.0 / 0.0; public static final double NaN = 0.0d / 0.0;
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access