Question: Predict the output of the following Java code segment. try i int [ ] arr = new int [ } { 1 1 , 2

Predict the output of the following Java code segment.
try
i
int [] arr = new int [}{11,22,33,44,55};
for (int i=0; i arr.length ;i++)
{
}
System.out.printlo(arr[i]+"");
}
catch(Exception ex)
}
}
System.out.println("Exception");
catch(ArraxlodexOutOfBoundsException ex)
1
}
System out.printo("ArraxlndexQutofBoundsExcention");
 Predict the output of the following Java code segment. try i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!