Multiple choice

Which of the following types of exception classes is used to deal with assignment to an array element of an incompatible type?

  1. ArithmeticException

  2. ArrayStoreException

  3. IllegalArgumentException

  4. IllegalStateException

  5. ClassCastException

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

This type of exception class is used to deal with assignment to an array element of an incompatible type.