ExamVeda
Login
Home
Exception Handling in C Sharp
?

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

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.