The following code segment has been created. What would be the output if we were to crea te a program and run it int[] a
Posted: Mon Jul 11, 2022 9:54 am
The following code segment has been created. What would be the output if we were to crea te a program and run it int[] a = {1,2,3,4,5}; try { } for (int i a++; int ac = 10; } int b = = 0; i <= a.length; i++) ac/0; catch(ArrayIndexOutOfBounds Exception e) { System.out.print( "Index out of bound "); } catch (Exception e) { System.out.print("division by zero "); none of the answers division by zero Index out of bound O index out of bound division by zero