1.

What is the output of below snippet?

Obj[] names = new String[10];
name[0] = new Integer(0);

A. ArrayIndexOutOfBoundsException
B. Compilation Error
C. Code runs successfully
D. ArrayStoreException
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs