Question: What type of exception is thrown when a precondition is violated?
- IllegalArgumentException
- NumberFormatException
- NullPointerExcepetion
- MalformedParameterException
Answer: The correct answer of the above question is Option A:IllegalArgumentException