ExamVeda
Login
Home
Exception Handling in C Sharp
?

What will be the output of the following C# code?
static void Main(string[] args)
{            
    try 
    {
        Console.WriteLine("csharp" + " " + 1/Convert.ToInt32(0));
    }
    catch(ArithmeticException e) 
    {
        Console.WriteLine("Java");        	
    }
    Console.ReadLine();
}

Answer & Solution
Correct Answer: Option B
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.