What if an error occurs in Catch block, how can you prevent it?

Answers were Sorted based on User's Feedback



What if an error occurs in Catch block, how can you prevent it?..

Answer / sanchayeeta sen

hi,
we can insert a new try-catch block inside the catch block.
try-catch blocks are used for handling errors in c#.


thanks

Is This Answer Correct ?    8 Yes 0 No

What if an error occurs in Catch block, how can you prevent it?..

Answer / anita chauhan

catch block is used for handling exception or error and if
any such error occures in catch block then again we should
put some exception for that error in the same catch block.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More C Sharp Interview Questions

what are the Disadvantages of vb

0 Answers   Digital GlobalSoft,


To allow an element to be accessed using a unique key which .NET collection class is used ?

0 Answers   Siebel,


How do you create empty strings in c#?

0 Answers  


What is the difference between wrapper class and primitive?

0 Answers  


What is difference between hashtable and dictionary in c#?

0 Answers  






What is the difference between ienumerable and iqueryable?

0 Answers  


Explain the advantage of using system.text.stringbuilder over system.string?

0 Answers  


What is trim in c#?

0 Answers  


Where is the main method in c#?

0 Answers  


what is IFormatable

0 Answers   Wipro,


What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?

0 Answers  


Which language is used for desktop application?

0 Answers  


Categories