Q. 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 ______.
β
Correct Answer: (B)
ArrayIndexOutOfBoundsException