Package java.lang |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
public class java.lang.ArrayStoreException extends java.lang.RuntimeException { // Constructors public ArrayStoreException(); public ArrayStoreException(String s); }
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 Array-Store-Exception:
Object x[] = new String[3]; x[0] = new Integer(0);
public ArrayStoreException()Constructs a ArrayStoreException with no detail message.
public ArrayStoreException(String s)Constructs a ArrayStoreException with the specified detail message.
Parameter Description s the detail message
© 1996 Sun Microsystems, Inc. All rights reserved.