What is null pointer exception?

Report





Upload Image







Report Form



Question: What is null pointer exception?

Topics: exception

Paste old question below.


Available Answers: 1


Answer #1#

26


Class NullPointerException, Thrown when an application attempts to use null in a case where an object is required. Null Pointer Exception In Java · NullPointerException is a RuntimeException. When you declare a reference variable (i. NullPointerException is a runtime exception and it is thrown when the application try to use an object reference which has a null value.

Report

Answered By:
Dasya

Dasya

Tiruchirappalli, India

Only Logged in users can post reply.


More Questions


Login


Lost Password!

Create Account

Wait Processing...