Multiple choice

Which of the following exceptions is thrown when an application attempts to use null where an object is required?

  1. Arithmetic Exception

  2. NullPointer Exception

  3. ArrayIndexOutBounds Exception

  4. None of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This exception is thrown when an application attempts to use null where an object is required.