Skip to content

Glossary: Coding Interviews in Java

NullPointerException

A Java error thrown when you use a reference that is null. In the linked-list code it happens if you read `fast.next` without checking `fast` first.

Where the book teaches it

Related terms

Fast and slow pointers