Monday 11 March 2013

java.lang ArrayStoreException


java.lang
ArrayStoreException

Declaration
public class ArrayStoreException extends RuntimeException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--java.lang.ArrayStoreException
Description
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);
Since: JDK1.0, CLDC 1.0


Constructors
ArrayStoreException()
ArrayStoreException(String s)


Methods inherited from class Object
equals(Object), getClass(), hashCode(), notify(), notifyAll(), wait(), wait(), wait()
Methods inherited from class Throwable
getMessage(), printStackTrace(), toString()


Constructors
ArrayStoreException()
Declaration:
public ArrayStoreException()
Description:
Constructs an ArrayStoreException with no detail message.
ArrayStoreException(String)
Declaration:
public ArrayStoreException(java.lang.String s)
Description:
Constructs an ArrayStoreException with the specified detail message.
Parameters:
s - the detail message.



No comments:

Post a Comment