1 *java.lang.NullPointerException* *NullPointerException* Thrown when an applicati
3 public class NullPointerException
4 extends |java.lang.RuntimeException|
6 |java.lang.NullPointerException_Description|
7 |java.lang.NullPointerException_Fields|
8 |java.lang.NullPointerException_Constructors|
9 |java.lang.NullPointerException_Methods|
11 ================================================================================
13 *java.lang.NullPointerException_Constructors*
14 |java.lang.NullPointerException()|Constructs a NullPointerException with no det
15 |java.lang.NullPointerException(String)|Constructs a NullPointerException with
17 *java.lang.NullPointerException_Description*
19 Thrown when an application attempts to use null in a case where an object is
20 required. These include:
22 Calling the instance method of a null object. Accessing or modifying the field
23 of a null object. Taking the length of null as if it were an array. Accessing
24 or modifying the slots of null as if it were an array. Throwing null as if it
25 were a Throwable value.
27 Applications should throw instances of this class to indicate other illegal
28 uses of the null object.
32 *java.lang.NullPointerException()*
34 public NullPointerException()
36 Constructs a NullPointerException with no detail message.
39 *java.lang.NullPointerException(String)*
41 public NullPointerException(java.lang.String s)
43 Constructs a NullPointerException with the specified detail message.
45 s - the detail message.