[Chapter 25] 25.44 java.lang.NullPointerException (JDK 1.0)

#

| 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)