MCQs>IT & Programming>C#>What will be the result of the following code ? public static void Main() { try { var s = '200'; var i = int.Parse(s); if (i == 200) Environment.FailFast("i is equal to 200"); } catch (Exception ex) { Console.WriteLine(ex.Message); } finally { Console.WriteLine('done!'); } }
C# MCQs
What will be the result of the following code ? public static void Main() { try { var s = "200"; var i = int.Parse(s); if (i == 200) Environment.FailFast("i is equal to 200"); } catch (Exception ex) { Console.WriteLine(ex.Message); } finally { Console.WriteLine("done!"); } }
Answer
Correct Answer: An error message "A problem caused the program to stop working correctly" will be displayed.
Explanation:
Note: This Question is unanswered, help us to find answer for this one