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 / pompana gouda

Yes and No is the answer...
Yes because, Any type of exception will be caught by general
catch block.

No because,
If there are 3 lines which generate 3 different exceptions,
Then only first exception is caught in the general exception
catch block. If first line is not throwing exception then
whatever the line which throws exception will be caught...
Not all exceptions are handled by single catch statement.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I produce an assembly?

981


Differentiate between copy and default constructor.

971


What is a ienumerator?

871


What are access modifiers used for?

1023


Is post back c#?

876


What is the difference between C# 3.5 and C# 4.0?

885


Overloaded constructor will call default constructor internally?

986


What is console writeline in c#?

826


What is the usage of transponders?

884


What is difference between for and foreach in c#?

894


What is activator c#?

854


Explain how to implement delegates in c#.net

898


What are custom attributes in c#?

834


What is the use of delegates in c#?

834


What is default value of decimal c#?

835