Answer (Choose 1 answer)
What is the output of the following code?
static void Main(string[] args)
{
try
{
Console.WriteLine("Line 1");
throw new Exception();Console.WriteLine("Line 2");
}
catch (Exception e)
{
Console.WriteLine("Line 3");}
finally
{
Console.WriteLine("Line 4");
} Console.ReadLine();
}
A. Line 1
Line 3
Line 4
B. Line 1
Line 3
C. Line 1
Line 2
Line 3
Line 4
D. This code will not be compiled.
Elt