Multiple choice

Which of the following Exception classes is used when a requested operation is not compatible with the current thread state?

  1. ArithmeticException

  2. IllegalStateException

  3. IllegalThreadStateException

  4. ArrayStoreException

  5. NegativeArraySizeException

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

This Exception class is used when a requested operation is not compatible with the current thread state.