Consider the following code: public class Test { public s…
Consider the following code: public class Test { public static void main(String nums = {1, 2, 3}; System.out.println(nums); System.out.println(“Inside try block”); } catch (ArithmeticException e) { System.out.println(“Arithmetic Exception”); } catch (ArrayIndexOutOfBoundsException e) { System.out.println(“Array Index Exception”); } finally { System.out.println(“Finally block”); } System.out.println(“End of program”); }} What is the output?