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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of dataadapter.

805


Can you use c# without .net?

737


Can you explain composite pattern?

778


List some of the important session state modes of asp.net.

699


What is the difference between ASP Session State and ASP.Net Session State?

785


What is the difference between user control and custom control?

682


Why is it preferred to not use finalize for clean up?

722


Explain weak typing and strong typing.

752


How can I configure asp.net applications that are running on a remote machine?

765


What is different in .net 1.1 and .net 2.0?

759


What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

776


Explain what is event bubbling?

772


Can you explain the importance of finalize method in .net?

797


What is difference between session and viewstate?

654


What is application state?

682