Package java.lang Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class NullPointerException

Constructors

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.


Constructors


NullPointerException

public NullPointerException() 

Constructs a NullPointerException with no detail message.


NullPointerException

public NullPointerException(String  s) 

Constructs a NullPointerException with the specified detail message.

ParameterDescription
s the detail message



Top© 1996 Sun Microsystems, Inc. All rights reserved.