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
What are the types of parameters in c#?
What is the difference between virtual and override in c#?
Difference between a sub and a function in c#.
What is the difference between “dispose” and “finalize” variables in c#?
What is a method signature?
What is uint64?
Does c# support parameterized properties?
What is msil in c#?
Name some properties of thread class.
What is thread pooling?
What are the string functions in c#?
Explain the access modifiers in c#?
Why do we use virtual methods in c#?
Hello! How to do this: "Create manifest utility intended for creating update content files. Application should take a set of files as input parameter and generate XML based manifest file as output one." I use C# and vs.net 2003. It's urgent! Help please, thanks. Mayana
What is a console in c#?