Package java.lang |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
public class java.lang.NullPointerException extends java.lang.RuntimeException { // Constructors public NullPointerException(); public NullPointerException(String s); }
Thrown when an application attempts to use null in a case where an object is required. These include:
Applications should throw instances of this class to indicate other illegal uses of the null object.
public NullPointerException()Constructs a NullPointerException with no detail message.
public NullPointerException(String s)Constructs a NullPointerException with the specified detail message.
Parameter Description s the detail message