

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of below snippet? Object[] names = new String[3]; names[0] = new Integer(0); |
A. | ArrayIndexOutOfBoundsException |
B. | ArrayStoreException |
C. | Compilation Error |
D. | Code runs successfully |
Answer» C. Compilation Error | |