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
Which program construct must return a value?
What is iqueryable?
What is deferred execution?
What is inner class in c#?
What is static noise?
What does using system mean in c#?
What is the difference between namespace and class in c#?
Explain the features of an abstract class in net.
Is there a way of specifying which block or loop to break out of when working with nested loops?
What are examples of desktop applications?
What does convert toint32 mean?
Is string mutable in c#?
Is linkedhashset synchronized?
Explain the mechanism of VB.NET/C# achieve polymorphism?
How do namespaces work?