- 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 (26.02 KiB) Viewed 33 times
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
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 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
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