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

Is lazy thread safe c#?

925


What are the advantages of clr procedure over t-sql procedure?

1039


What is the use of generics in c#?

909


How do I create a multilanguage?

963


How do you prevent a method from being overridden in c#?

917


What is difference between class and interface in c#?

972


Can mvc be used for desktop applications?

1021


what is a constructor? What is a destructor?

1034


Is c# an open source?

978


Which is better interface or abstract class in c#?

864


What is the difference between field and variable in c#?

1063


What is the benefit of using interface in c#?

1050


Which is faster iqueryable or ienumerable?

1037


What is semaphore in c#?

991


What is console programming language?

1013