1.

What is the output of this program?
public class exception_Example
{
public static void main(String args[])
{
try
{
System.out.print("Interview" + " " + 15 / 0);
}
catch(ArithmeticException e)
{
System.out.print("Mania");
}
}
}

A. Interveiw
B. Mania
C. Compilation Error
D. Runtime Error
E. None of these
Answer» C. Compilation Error


Discussion

No Comment Found

Related MCQs