C# Programming - Exception Handling - Discussion

Discussion Forum : Exception Handling - General Questions (Q.No. 6)
6.
Which of the following statements are correct about exception handling in C#.NET?
  1. If our program does not catch an exception then the .NET CLR catches it.
  2. It is possible to create user-defined exceptions.
  3. All types of exceptions can be caught using the Exception class.
  4. CLRExceptions is the base class for all exception classes.
  5. For every try block there must be a corresponding finally block.
1 and 2 only
1, 2 and 3 only
4 and 5 only
All of the above
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
1 comments Page 1 of 1.

VaibhavVU said:   3 years ago
B is correct because option 4 it's call System. Exception, not CLR Exception and potion 5 is also not correct.

The correct statements are given below:

1)try{}, 2)try{} catch {}, 3)try{}finally {}, 4)try{}catch{} finally {}.

Post your comments here:

Your comments will be displayed after verification.