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

Explain the three services model (three-tier application). Presentation (ui), business (logic and underlying code) and data (from storage or other sources).

960


What is executescalar in c#?

894


Is c sharp free?

967


How do you prevent a class from being inherited?

963


Can you inherit from multiple classes in c#?

931


Can namespace contain the private class?

981


What is the keyword used to prevent a class from being inherited by another class?

1166


What is the advantage of singleton class?

996


Can you use all access modifiers for all types?

1007


Can you use foreach iteration on arrays in c#?

1117


What is an object pool in .net?

1092


if a method is marked as protected internal who can access it?

1076


What are virtual destructors?

1018


Can a class be protected in c#?

953


Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records

1110