A

Admin • 828.70K Points
Coach

Q. Which exception is thrown when an object reference is null?

  • (A) NullReferenceException
  • (B) NullPointerException
  • (C) NoSuchObjectException
  • (D) ReferenceError

Explanation by: Admin
Accessing methods or members on a null object reference throws NullPointerException.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.