Home » JAVA Programming » Exceptions » Question
  1. What is the output of this program?
    public class Arithmetic_Exception
    {
    public static void main(String args[])
    {
    try
    {
    int p = args.length;
    int q = 11 / p;
    System.out.print(p);
    }
    catch (ArithmeticException e)
    {
    System.out.println("First");
    }
    }
    }
    1. Compilation Error
    2. Runtime Error
    3. First
    4. 11
    5. None of these
Correct Option: C

First



Your comments will be displayed only after manual approval.