Difference between "Double" and "double"

This question already has an answer here:

  • Double vs double in java [duplicate] 7 answers
  • Difference between decimal, float and double in .NET? 17 answers

  • Double is an object and double is a primitive data type. See this answer for more details.

    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.

    Source: http://docs.oracle.com/javase/7/docs/api/java/lang/Double.html

    链接地址: http://www.djcxy.com/p/21336.html

    上一篇: 浮动,双倍和十进制最大值与大小

    下一篇: “双”和“双”之间的区别