A

Admin • 832.27K Points
Coach

Q. Which exception is thrown if a method receives an illegal argument?

  • (A) IllegalStateException
  • (B) IllegalArgumentException
  • (C) RuntimeException
  • (D) InputMismatchException

Explanation by: Admin

`IllegalArgumentException` is used when an inappropriate argument is passed to a method.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.