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;

Get Just Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.