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 xml tags are case sensitive?

932


What are the types of methods in c#?

1049


What is addressof operator?

1020


What is console read in c#?

956


What are delegate methods?

1012


What does string format do?

919


What is the function of .IsDescendent()?

1064


What happens if you add duplicate elements to a set?

929


what are the Disadvantages of vb

1098


Why do we need indexer in c#?

1059


How big is int16?

993


What are the examples of data types?

1021


What is the syntax for calling an overloaded constructor within a constructor?

1000


Explain about Threading Types.

1119


What is expression tree in c#?

968