Home » JAVA Programming » Exceptions » Question
  1. 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");
    }
    }
    }
    1. Welcome to
    2. Interview Mania
    3. Interview
    4. Mania
    5. Welcome to Interview Mania
Correct Option: E

Welcome to Interview Mania



Your comments will be displayed only after manual approval.