Question

If a program crashes with a "NullPointerException" (or similar null reference error), what is the most likely cause?

A Division by zero.
B Attempting to access a member or method of an object that is currently null.
C Infinite loop.
D Stack overflow.
E Incorrect array indexing.
Practice Next

Hey! Ask a query