Update ArrayStoreExceptionExample.java

This commit is contained in:
gupta-ashu01
2020-08-30 14:19:34 +05:30
committed by GitHub
parent 765629be47
commit 71b9fd959a
@@ -7,9 +7,8 @@ public class ArrayStoreExceptionExample {
try {
Object array[] = new String[5];
array[0] = 2;
System.out.println(array[0]);
} catch (ArrayStoreException e) {
e.printStackTrace();
// handle the exception
}
}