public class Exc
{
public static void main(String args[])
{
int x1=0;
try {
int x3= 100/x1;
} catch(ArithmeticException e) {
System.out.println(“Illegal operation”);
} catch(RuntimeException e) {
System.out.println(“runtime error”);
return;
} catch(Exception e) {
System.out.println(“Exception found”);
} finally {
System.out.println(“Complete”);
}
System.out.println(“Successfully”);
}
}
Responses to “What will be the output of the following program code?”