Question: What type of exception is thrown when a precondition is violated?

  1. IllegalArgumentException
  2. NumberFormatException
  3. NullPointerExcepetion
  4. MalformedParameterException

Answer: The correct answer of the above question is Option A:IllegalArgumentException