Styrow.dev
Question 217 of 247
Java Topic: General medium

When is the ArrayStoreException thrown?

Question

When is the ArrayStoreException thrown?

Answer

When copying elements between different arrays, if the source or destination arguments are not arrays or their types are not compatible, an ArrayStoreException will be thrown.