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);
Returns an array containing all of the exceptions that were
suppressed, typically by the try-with-resources
statement, in order to deliver this exception.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[],["`ArrayStoreException` is thrown when an attempt is made to store an object of the wrong type into an object array. It extends `RuntimeException`. This exception can be constructed with or without a detailed message. Inherited methods allow for adding, retrieving, and managing suppressed exceptions, along with stack trace and message details. There are methods to manage cause of the exception. Also, there are some method inherited from the Object class to manage the object as a whole.\n"]]