java.lang

Class NullPointerException

public class NullPointerException extends RuntimeException

Thrown when attempting to use null where an object is required. The Virtual Machine automatically throws this exception for the following:

Applications should also throw NullPointerExceptions whenever null is an inappropriate parameter to a method.

UNKNOWN: updated to 1.4

Constructor Summary
NullPointerException()
Create an exception without a message.
NullPointerException(String s)
Create an exception with a message.

Constructor Detail

NullPointerException

public NullPointerException()
Create an exception without a message.

NullPointerException

public NullPointerException(String s)
Create an exception with a message.

Parameters: s the message