Millionaire Mode
Java Applets and AWT Graphics
Question 1 of 12
In the following Java program, it was found that these statements have generated an exception of Array Index out of bound Exception.
int b[ ] = {10,20,30};
b[50] = 100 ;
Choose the correct catch statement for the above code.
- ```java
catch (ArrayIndexOutOfBoundsException aie) {
aie.printStackTrace();
System.out.println("array size is less than what you are trying to access")
} java catch (ArrayIndexOutOfBoundsException aie) { System.out.println("array size is less than what you are trying to access") }- ```java
catch (aie) {
aie.printStackTrace();
System.out.println("array size is less than what you are trying to access")
} - ```java
throw (ArrayIndexOutOfBoundsException aie) {
aie.printStackTrace();
System.out.println(array size is less than what you are trying to access ')
} - ```java
throw (aie) {
aie.printStackTrace();
System.out.println(array size is less than what you are trying to access)
}
Prize Money
15₹7 Crores
14₹1 Crore
13₹50,00,000
12₹25,00,000
11₹12,50,000
10₹6,40,000
9₹3,20,000
8₹1,60,000
7₹80,000
6₹40,000
5₹20,000
4₹10,000
3₹5,000
2₹2,000
1₹1,000