0
What is the output of the following Java program?
public class Main {
public static void main(String[] args) {
Object[] arr = new String[2];
try {
arr[0] = "x";
arr[1] = 10;
System.out.print("OK");
} catch (ArrayStoreException e) {
System.out.print("ASE");
} catch (Exception e) {
System.out.print("EX");
}
}
}- AASE
- BOK
- CEX
- DCompilation error
Correct answer: A