A

Admin • 833.24K Points
Coach

Q. What will happen if you call length() on a null String?

  • (A) 0
  • (B) null
  • (C) Exception
  • (D) false

Explanation by: Admin

Calling any method on a null reference throws NullPointerException.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.