Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 strongly typed objects?

870


Is .net and c# the same?

938


Is datetime immutable c#?

871


Why do we need reflection in c#?

870


What is tochararray in c#?

868


Why is xml called extensible?

821


What is difference between an reference type and value type in C#?

1001


Write a program to find the angle between the hours and minutes in a clock

871


Are structs faster than classes?

880


Is it possible to inline assembly or il in c# code?

966


Why c# is called type safe language?

787


In which order the constructor is called for an inherited class?

962


Why do we need to override in c#?

913


What is different about switch statements in c#?

813


What is Co- and Contra-Variance in C#?

910