Multiple choice

The _______ exception is thrown when a method is called with illegal arguments.

  1. illegal args

  2. illegal argument

  3. illegal arguments

  4. illegal arg

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

IllegalArgumentException is thrown when a method receives an argument that is inappropriate or invalid. The correct exception name uses the singular form 'argument' rather than plural, matching Java's naming convention for this standard exception.