java.lang
Class ArrayStoreException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.ArrayStoreException
public class ArrayStoreException
- extends RuntimeException
Thrown when trying to store an object of the wrong runtime type in an
array. For example:
Object[] o = new Integer[1];
o[0] = "oops";
ArrayStoreException
public ArrayStoreException()
- Create an exception without a message.
ArrayStoreException
public ArrayStoreException(String s)
- Create an exception with a message.
- Parameters:
s - the message