26. What will be the output of the following program if
the int i = 12/x statement in method f2 causes a
java.lang.RuntimeException to be thrown?
public class TestException
{
public static void main (String [] args)
{
f1 ();
System.out.println("f1 complete");
}
public static void f1 ()
{
try {
f2();
System.out.println("f2 complete");
}
catch (Throwable t) {}
}
public static void f2 ()
{ int x = 0;
int i = 12/x;
System.out.println("Division by zero...");
}
}
Select 1 correct answer:
A. f2 complete
B. f1 complete
C. Division by zero...
D. None of the above.