Multiple choice technology programming languages

Which of the following uses the same number of bits as the double primitive variable?

  1. int

  2. byte

  3. float

  4. long

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

In Java, a double primitive uses 64 bits of memory. Among the options, only the long primitive also uses 64 bits. Float and int use 32 bits, while byte uses only 8 bits. Option D is correct.