1.

What is the output of this program?
 public class exception_Example
{
public static void main(String args[])
{
try
{
int p, q;
q = 0;
p = 13 / q;
System.out.print("welcome to");
}
catch(ArithmeticException e)
{
System.out.print("Interview");
}
finally
{
System.out.print(" Mania");
}
}
}

A. welcome to
B. Interview Mania
C. Interview
D. Mania
E. None of these
Answer» C. Interview


Discussion

No Comment Found

Related MCQs