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?

Answers were Sorted based on User's Feedback



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

Answer / subasini

Catch(Exception) is Bad Because Of It supress your Fault in
the coding

Is This Answer Correct ?    4 Yes 2 No

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

Answer / senthilselvan

if you know what kind of error may occur in that block mean
, will it be right to use catch block without handling the
proper validation?

Is This Answer Correct ?    2 Yes 1 No

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

Answer / 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

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

Answer / anna

it's not the bad idea of using catch exception.
catch exception catches all the exceptions in try block.
if we use these blocks, we will be able to know where the
exact error is.
if we use one try block, we must use the catch block .

Is This Answer Correct ?    6 Yes 6 No

Post New Answer

More ASP.NET Interview Questions

Why is it important to maintain session state?

1 Answers  


Can private assembly be used for more than one application? If so how?

7 Answers   Satyam,


Why do we need Sessions?

0 Answers   QuestPond,


What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?

2 Answers  


Can we mention error in web.config file?

2 Answers  


What is the difference between viewstate and hidden field in asp.net?

0 Answers  


What language does asp.net use?

0 Answers  


What is difference between Server.Transfer and Response.Redirect in ASP.NET?

0 Answers   Sans Pareil IT Services,


List the major built-in objects in asp.net?

0 Answers  


What does AspCompat="true" mean and when should I use it?

1 Answers   Infogain,


What is bson in web api?

0 Answers  


Differentiate globalization and localization.

0 Answers  


Categories