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

What are the differences between events and delegates in c#?

929


How can it prevents DLL Hell assembly versioning in .NET?

990


What do you mean by expression tree?

801


What does firstordefault mean in c#?

916


What is use of list in c#?

816


Describe ado.net?

987


What is difference between an Structure and Class?

1075


list the steps in code compilation in c#?

823


What is the difference between interface and abstract class in c#?

871


What is the difference between a function and a method?

929


What is a event in c#?

848


What is type keyword in c#?

883


Can int be null in c#?

841


Is stringbuilder better than string?

872


What is the difference between list and array in c#?

961