ExamVeda
Login
Home
Interfaces and Abstract Classes
?

What will be the output of the following Java program?
class exception_handling 
{
        static void throwexception() throws ArithmeticException 
        {        
            System.out.print("0");
            throw new ArithmeticException ("Exception");
        }
        public static void main(String args[]) 
        {
        try 
        {
            throwexception();
        }
        catch (ArithmeticException e) 
        {
                System.out.println("A");
        }
    }
}

Answer & Solution
Correct Answer: Option C
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.