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 is the difference between paramaterized constructor and copy constructor?
What is wpf application in c#?
What can be done with c#?
Explain a MSIL ? Why is it appreciated by all developers?
What are async and await?
What is delegate in c#?
Explain Direct CAST vs CType ?
Is string a primitive data type in c#?
Do loops in c#?
What is the use of console application in c#?
What are the properties of string?
What is literal control
What is a property c#?
Is c# scripting language?
Is c sharp free?