Will finally block get executed if the 1exception had not
occurred?

Answers were Sorted based on User's Feedback



Will finally block get executed if the 1exception had not occurred?..

Answer / ranganathkini

Yes a finally block always executes irrespective of the fact
if or if not an exception was thrown in the associated try
block.

Is This Answer Correct ?    3 Yes 0 No

Will finally block get executed if the 1exception had not occurred?..

Answer / basayya_swami

yes, finally block always execute if exception occerred
donot occurred is not a matter

Is This Answer Correct ?    2 Yes 0 No

Will finally block get executed if the 1exception had not occurred?..

Answer / shiba shankar

yes, the exception may or may not occur it is mandatory
that the finally block must be executed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Can we extend sealed class in c#?

0 Answers  


What is immutable in C#?

0 Answers   SwanSoft Technologies,


Can we inherit partial class in c#?

0 Answers  


What is property in c#?

0 Answers  


Difference between dispose and destructor?

3 Answers   TCS,






How can I use .NET components from COM programs?

0 Answers   DELL,


In languages without exception-handling facilities, we could send an error-handling procedure as a parameter to each procedure that can detect errors that must be handled. What disadvantages are there to this method?

0 Answers   HCL,


I have a class declared as below public class a { public void add() {} } What is the diference between a a1 =new a; and simply a a1;

3 Answers  


Define thread? Explain about multithreading?

0 Answers  


Is vs as c#?

0 Answers  


What is the difference between list and ilist in c#?

0 Answers  


What is a string in c#?

0 Answers  


Categories