A

Admin • 828.03K Points
Coach

Q. Which exception occurs when accessing a method on a null reference?

  • (A) NullMethodException
  • (B) NullAccessException
  • (C) NullPointerException
  • (D) IllegalStateException

Explanation by: Admin
Accessing a method on a null object throws NullPointerException.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.