

MCQOPTIONS
Saved Bookmarks
1. |
If you are inserting any value in the wrong index as shown below, 1. int a[]=new int[5]; 2. a[10]=50; it would result in ______. |
A. | NullPointerException |
B. | ArrayIndexOutOfBoundsException |
C. | ArithmeticException |
D. | NumberFormatException |
Answer» C. ArithmeticException | |