Which of the following statements are correct about exception handling in C#.NET?1 If an exception occurs then the program terminates abruptly without getting any chance to recover from the exception. 2 No matter whether an exception occurs or not, the statements in the finally clause (if present) will get executed.3 A program can contain multiple finally clauses.4 A finally clause is written outside the try block.5 Finally clause is used to perform cleanup operations like closing the network/database connections.

🎲 Try a Random Question  |  Total Questions in Quiz: 156  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
C# Programming Practice Test — practice the complete quiz, review flashcards, or try a random question.


Which of the following statements are correct about exception handling in C#.NET?<br>1 If an exception occurs then the program terminates abruptly without getting any chance to recover from the exception. 2 No matter whether an exception occurs or not, the statements in the finally clause (if present) will get executed.<br>3 A program can contain multiple finally clauses.<br>4 A finally clause is written outside the try block.<br>5 Finally clause is used to perform cleanup operations like closing the network/database connections.