O'Reilly logo

Java Garage by Eben Hewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

N
NaN

Not a Number. A floating point constant representing the result of attempting to perform an erroneous mathematical operation (such as trying to divide by zero). Referencing the static variable Double.NaN prints “NaN”, and calling the non-static method isNaN() on a Float or Double object returns a boolean. For example: return new Float(3.14).isNaN() returns false.

null

Represents the absence of a value, using the ASCII literal null.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required