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
Explain the three services model (three-tier application). Presentation (ui), business (logic and underlying code) and data (from storage or other sources).
What is executescalar in c#?
Is c sharp free?
How do you prevent a class from being inherited?
Can you inherit from multiple classes in c#?
Can namespace contain the private class?
What is the keyword used to prevent a class from being inherited by another class?
What is the advantage of singleton class?
Can you use all access modifiers for all types?
Can you use foreach iteration on arrays in c#?
What is an object pool in .net?
if a method is marked as protected internal who can access it?
What are virtual destructors?
Can a class be protected in c#?
Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records