[Chapter 25] 25.44 java.lang.NullPointerException (JDK 1.0)
Author: David Flanagan
Date: Thu Jul 31 16:27:23 1997

#

| Chapter 25 The java.lang Package |

## 25.44 java.lang.NullPointerException (JDK 1.0)

###

Signals an attempt to access a field or invoke a method of a `null` object.

    public class NullPointerException extends RuntimeException {
        // Public Constructors
                public NullPointerException();
                public NullPointerException(String s);
    }

### Hierarchy:

Object->Throwable(Serializable)->Exception->RuntimeException->NullPointerException

java.lang.NoSuchMethodException (JDK 1.0) |  | java.lang.Number (JDK 1.0)