What is the output of the following code? public class Test…
What is the output of the following code? public class Test { public static void main(String[] args) { try { int[] arr = null; int b = arr.length; } catch (ArrayIndexOutOfBoundsException e) { System.out.print(“oops…”); } catch (NullPointerException e) { System.out.print(“ok…”); } finally { System.out.println(“done”); } }} [BLANK-1]
Read Details