If all code is written in a try block and write a catch
block with Exception type Exception .In that scenario will
all the exceptions catched by that catch block? or any
exceptions which will not be caught?
Answer Posted / parmjit
Yes all the exceptions will be catched by this catch block.
Because all the thrown exception as derived from this class
or it's sub class.
Because even if any exception occured which is not derived
from the Exception class, it is automatically wrapped in
RuntimeWrappedException which is a derived class of
Exception class.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Is arraylist faster than linkedlist?
What are the classes contained in a single .NET DLL ?
What is difference between private, protected, and public in C#?
What are the different types of constructors in c#?
How do you prevent a class from being inherited in c#?
What is the difference between protected and private?
Explain how to use an extender provider in the project.
What are the different types of assemblies available and their purpose?
How many classes are there in classification?
Describe how a .net application is compiled and executed
What is system console writeline in c#?
What is dependency in software?
Is array a collection c#?
Define multicast c# delegate?
Does c# support a variable number of arguments?