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 types of methods in c#?

0 Answers  


can you declare an override method to be static if the original method is not static?

0 Answers   Siebel Systems,


What is the difference between array.find method and arraylist.find method?

1 Answers   Mphasis,


What is the functionality of break and continue in Visual Studio?

2 Answers   JPMorgan Chase,


What is toint32 c#?

0 Answers  






What are the different types of comments in c#?

0 Answers  


Which is executed if an exception has not occurred?

0 Answers   Siebel,


What is overriding in c#?

0 Answers  


Which is better interface or abstract class in c#?

0 Answers  


What is the real use of interface in c#?

0 Answers  


What are the generation of Garbage Collection in C# .NET ?

0 Answers   MCN Solutions,


What is a delegate in c#?

0 Answers  


Categories