NullPointerException

The NullPointerException is an exception that occurs when attempting to use a null value in place of where an object is required.

Contributors

Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.

Learn Java on Codecademy