public class NullPointerException extends RuntimeException
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.
| Constructor and Description |
|---|
NullPointerException()
Create an exception without a message.
|
NullPointerException(String s)
Create an exception with a message.
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NullPointerException()
public NullPointerException(String s)
s - the message