关于Java: “Double” and “double” 区别

Difference between “Double” and “double”

本问题已经有最佳答案,请猛点这里访问。

DoubleDouble有什么区别?


Double是对象,Double是原始数据类型。有关详细信息,请参阅此答案。

The Double class wraps a value of the primitive type double in an
object. An object of type Double contains a single field whose type is
double.

来源:http://docs.oracle.com/javase/7/docs/api/java/lang/double.html