Question: int [ ] list = { 6 , 2 , 0 , 4 , 3 , 4 } ; int j; try { 1 .
int list ;
int j;
try
System.out.println Try block ;
for j ; j ; j
System.out.println listjj;
System.out.printlnEnding try block ;
catch ArrayIndexOutOfBoundsException e
System.out.println First Exception Caught in block : ;
catch Exception e
System.out.println Second Exception Caught in block : ;
finally
System.out.println Nothing to declare!";
j ;
try
System.out.printlnTry block ;
System.out.printlnj listj;
System.out.printlnEnding try block ;
catch ArrayIndexOutOfBoundsException e
System.out.printlnException Caught : ;
catch ArithmeticException e
System.out.printlnException Caught : ;
System.out.printlnThis is NOT printed!!";
consider the outpot of each statement from to with explanation please.
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
