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 .exe means?
Explain the OOPS concept in C#?
How many static constructors are allowed in a class?
What is streamreader/streamwriter class?
Is c# a technology?
How to find type of variable?
Explain inheritance in c#?
What is difference between function and method in c#?
Is unity object oriented?
in object oriented programming, how would you describe encapsulation?
Explain About friend and Protected friend
What is sqldataadapter in c#?
How to do and Apply Themes to Datagrid,Lable,Textbox,etc., in C#.NET 2005 Windows Application? (like who we will do themes in ASP.NET using .CSS and .SKIN files). Urgent!!
Why are local variables stored in stack?
What is difference between hashtable and dictionary in c#?