NullPointerException is an unchecked exception and extends RuntimeException. It doesn´t force you to use catch block to handle it. NullPointerException is thrown when an application attempts to use an object reference, having the null value. This may include:
1. Calling an instance method on the object referred by a null reference.
2. Accessing or modifying an instance field of the object referred by a null reference.
3. If the reference type is an array type, taking the length of a null reference.
4. If the reference type is an array type, accessing or modifying the slots of a null reference.
5. If the reference type is a subtype of Throwable, throwing a null reference.
6. Applications should throw instances of this class to indicate other illegal uses of the null object.
For more information
Handling NullPointer Exception- Click Here