DEVFYI - Developer Resource - FYI

When is the ArrayStoreException thrown?

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

155. When is the ArrayStoreException thrown?

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.

(Continued on next question...)

Other Interview Questions