ArrayStoreException (Java Platform SE 8 )

PHOTO EMBED

Sat May 16 2020 19:48:57 GMT+0000 (Coordinated Universal Time)

Saved by @frogblog #java

public class ArrayStoreException
extends RuntimeException
content_copyCOPY

Thrown to indicate that an attempt has been made to store the wrong type of object into an array of objects. For example, the following code generates an ArrayStoreException: Object x[] = new String[3]; x[0] = new Integer(0);

https://docs.oracle.com/javase/8/docs/api/java/lang/ArrayStoreException.html