Vidyalelo
C# Programming · Q74

Exception Handling in C Sharp

Programming · C# Programming · question 74

Q74

What will be the output of the following C# code? class Program static void Main(string[] args) try Console.WriteLine("csharp" + " " + 1/0); finally Console.WriteLine("Java"); Console.ReadLine();

A.
csharp 0
B.
Run time Exception generation
Answer
C.
Compile time error
D.
Java

Answer: Option B

Solution

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