2 Using <code>new Double(double)</code> is guaranteed to always result in a new object whereas
3 <code>Double.valueOf(double)</code> allows caching of values to be done by the compiler, class library, or JVM.
4 Using of cached values avoids object allocation and the code will be faster.
7 Unless the class must be compatible with JVMs predating Java 1.5,
8 use either autoboxing or the <code>valueOf()</code> method when creating instances of <code>Double</code> and <code>Float</code>.