Question: Task 4 { { new int [ ] { , 2 , 3 } ; int sum = ; for ( i = 1 ;
Task
new int ;
int sum ;
for ;;
sum arr
System.out.printlnSum: sum;
catch Exception e
f
System.out.printlnException was caught! ;
catch IndexOutOfBoundsException e
i
System.out.printin IndexutOfBounds Exception was caught!";
A: nothing, the compilation error will occur
B: Exception was caught!
C: IndexOutofBoundsException was caught!
D: Exception was caught!
IndexOutOfBoundsException was caught!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
