Vidyalelo
C# Programming · Q55

Exception Handling in C Sharp

Programming · C# Programming · question 55

Q55

What will be the output of the following C# code snippet? class program public static void Main(string[] args) try throw new NullReferenceException("C"); Console.WriteLine("A"); catch (ArithmeticException e) Console.WriteLine("B"); Console.ReadLine();

A.
A
B.
B
C.
Compile time error
D.
Runtime error
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board