Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.lang

Class NullPointerException

java.lang.Object
|
+--java.lang.Throwable
   |
   +--java.lang.Exception
      |
      +--java.lang.RuntimeException
         |
         +--java.lang.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.

Authors:

Constructor Summary

NullPointerException()

Create an exception without a message.
NullPointerException(java.lang.String s)

Create an exception with a message.

Constructor Details

NullPointerException

public NullPointerException()

Create an exception without a message.


NullPointerException

public NullPointerException(java.lang.String s)

Create an exception with a message.

Parameters: