public class java.lang
ArrayStoreException


Show All Login
Java SE 6
  
Extends: Throwable > Exception > RuntimeException
Details
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);
 
version1.12, 11/17/05
sinceJDK1.0

Constructors
public ArrayStoreException()
Constructs an ArrayStoreException with no detail message.
public ArrayStoreException(String s) Details
Constructs an ArrayStoreException with the specified detail message.
sthe detail message.