lenelex.com
Home
Quizzes
Games
Register
Log in
Question 1 of 10
What is the output of the program below?
try { //dvide by zero exception. int a = 0, b = a, c = a / b; Console.Write(">try"); } catch (DivideByZeroException) { Console.Write(">catch:zero"); } catch (Exception) { Console.Write(">catch:exception"); } finally { Console.Write(">finally"); }
A. >catch:exception>finally
B. >catch:zero>catch:exception>finally
C. >catch:zero>finally
D. >try>catch:exception>finally
E. >try>catch:zero>finally
Links:
Try-Catch-Finally
Exceptions and Exception Handling