What will be the output of following program?
What will be the output of following program? private static void test() { try { string[] str = { "0", "1", "2", "3" }; if (str[1] == "2") { Console.WriteLine("Success!!!"); } else { Console.WriteLine("Failure!!!"); } } catch { Console.WriteLine("Error!!!"); } finally { if(str != null) { str = null; } } }
Select Answer:
Success!!!
Error!!!
Compilation Error
Failure!!!
|