whis is the ArrayStoreException in java? or define ArrayStoreException with exp?
ArrayStore Exception occurs, when you assign an array which is not compatible with the data type of that array.
Example
class ArrayStoreExceptionExample { public static void main(String[] args) { try{ Object x[] = new String[3]; x[0] = new Integer(0); } catch(Exception e){ System.out.println(e); } } }
Ads