Difference between long and Long in java
Double is the original data type, Double is the encapsulation data type double has no method, Double has its own properties and Methods double only create reference, Double create object set class cannot store double, only Doubledouble can be stored in the stack. Double can be stored in the stack. The access speed of the stack is higher than that of the stack. Data in the stack can be shared, for example, double a = 0; double B = 0; no object is created. Only two references are created, pointing to the variable "0" (stack data sharing) and Double a = new Double (0); Double B = new Double (0 ); two objects will be created, even if the object represents the same value (heap data is not shared), so double is suitable for efficiency, the properties and methods provided by Double make operations more convenient and flexible.