valueOf(double) is generally a better choice, as it is
likely to yield significantly better space and time performance.
Constructs a newly allocated Double object that
represents the primitive double argument.
value | the value to be represented by the Double. |
Diagram: Number