This may be a very simple question but I am very confused here.
Double.MAX_VALUE gives 1.7976931348623157E308 which indeed is a floating point literal and hence double.
However, Double.POSITIVE_INFINITY gives infinity. How is infinity of type Double? It doesn't look like a decimal number or even a number.
Please explain.
doubleincludes numbers, and it includes infinity, and it includes NaN.