Examveda

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

C. Compile time error

D. Java

Answer: Option B


Join The Discussion

Related Questions on Exception Handling in C Sharp