Java Programming/Literals/null

From Wikibooks, open books for an open world
< Java Programming | Literals
Jump to: navigation, search

null is a special Java literal which represents a null value: an value which does not refer to any object. It is an error to attempt to dereference the null value -- Java will throw a NullPointerException. null is often used to represent uninitialized state.

See also:

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export