KellyPoima
New member
What will be the output of the following Java code snippet?
A. ArrayIndexOutOfBoundsException
B. ArrayStoreException
C. Compilation Error
D. Code runs successfully
Code:
Object[] names = new String[3];
names[0] = new Integer(0);
B. ArrayStoreException
C. Compilation Error
D. Code runs successfully