Java in a Nutshell

Previous Chapter 25
The java.lang Package
Next
 

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


Previous Home Next
java.lang.NoSuchMethodException (JDK 1.0) Book Index java.lang.Number (JDK 1.0)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java