Java Programming/Literals/null

From Wikibooks, the open-content textbooks collection

< 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
Create a book
  • Add wiki page
  • Collections help