What will be the output of the following C# code? [code] class Program { static void Main(string[] args) {

Phương Quyên

New member
What will be the output of the following C# code?
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
 

Tìm kiếm

Back
Top