Vidyalelo
C# Programming · Q86

Exception Handling in C Sharp

Programming · C# Programming · question 86

Q86

What will be the output of the following C# code? class Output public static void main(String args[]) try int a = 9; int b = 5; int c = a / b - 5; Console.WriteLine("Hello"); catch(Exception e) Console.WriteLine("C"); finally Console.WriteLine("sharp");

A.
Hello
B.
C
C.
Hellosharp
D.
Csharp
Answer

Answer: Option D

Solution

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