Vidyalelo
C# Programming · Q90

Exception Handling in C Sharp

Programming · C# Programming · question 90

Q90

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();

A.
csharp
B.
java
Answer
C.
run time error
D.
csharp 0

Answer: Option B

Solution

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