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


Please Help Members By Posting Answers For Below Questions

What are the types of parameters in c#?

522


What is the difference between virtual and override in c#?

475


Difference between a sub and a function in c#.

539


What is the difference between “dispose” and “finalize” variables in c#?

482


What is a method signature?

525






What is uint64?

514


Does c# support parameterized properties?

511


What is msil in c#?

546


Name some properties of thread class.

549


What is thread pooling?

530


What are the string functions in c#?

516


Explain the access modifiers in c#?

490


Why do we use virtual methods in c#?

483


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

1492


What is a console in c#?

482