Which of the following data type stores longest floating-point value?
boolean
double
float
long
Correct Answer: B — double
Explanation:
'double' is the longest data type with 64-bit defined by Java to store floating-point values.