lenelex.com
Home
Quizzes
Games
Register
Log in
Question 1 of 10
What is the output of the program below?
try { int a = 0, b = a; if (b == 0) { throw new ArgumentOutOfRangeException(); } Console.Write(">try"); } catch { Console.Write(">catch"); } finally { Console.Write(">finally"); }
A. >catch
B. >try>catch>finally
C. >try
D. >finally
E. >catch>finally
Links:
The Throw Statement
The Try-Catch Statement
Try-Catch-Finally
Exceptions and Exception Handling