-
What is the output of this program?
public class Exep_Handling_Example
{
public static void main(String args[])
{
try
{
int p, q;
p = 0;
q = 15/p;
}
catch(ArithmeticException e)
{
System.out.print("Welcome to ");
}
finally
{
System.out.print("Interview Mania");
}
}
}
-
- Welcome to
- Interview Mania
- Interview
- Mania
- Welcome to Interview Mania
Correct Option: E
Welcome to Interview Mania