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?
- If our program does not catch an exception then the .NET CLR catches it.
- It is possible to create user-defined exceptions.
- All types of exceptions can be caught using the Exception class.
- CLRExceptions is the base class for all exception classes.
- For every try block there must be a corresponding finally block.
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 {}.
The correct statements are given below:
1)try{}, 2)try{} catch {}, 3)try{}finally {}, 4)try{}catch{} finally {}.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers