Multiple choice technology programming languages

What is the difference between the types double and Double?

  1. double is primitive datatypes. Double is a class

  2. Both are primitive dataType

  3. Both are class type

  4. double is class and Double is primitive Type

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Java, 'double' is a primitive data type that stores 64-bit floating-point numbers, while 'Double' is a wrapper class that provides object representation of double values. This is part of Java's type system where primitives have direct memory representation and wrapper classes enable object-oriented operations. Options B, C, and D incorrectly classify these types.