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...

Why is catch(Exception) almost always a bad idea?

Answer Posted / nagaraj

Catch(Exception) means that you catch all the exception
which might not occur. But, really we need to catch only
some type of exception, so we need to catch only those type
instead of catching all the exceptions.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can we inherit a static member?

982


Why asp.net mvc is better than asp.net? : Asp.Net MVC

1141


How to fetch a data from one table to another table in asp.net ?

1044


Which is better asp.net or php?

1029


How many types of triggers are there in update panel?

1019


How can I create master page in asp net?

945


What is the difference between user control an custom control?

1115


5. What three Specific Job Positions do you target from Swatz Oils GROUP U.K?

2202


What is the difference between GridView and Repeater controls in ASP.NET?

1094


Explain how cookies work.

1045


How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

937


Describe the master page.

955


Explain page output caching?

986


Any one can tell how we store tiff format images in database and retrive from the database(need for tiff format only)

2029


If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) In my application?

1000