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

What is the namespace for the thread class?

0 Answers  


Define c# i/o classes?

0 Answers  


Why do we use interface in c#?

0 Answers  


Explain how do you directly call a native function exported from a dll?

0 Answers  


Can struct have constructor c#?

0 Answers  


Is it possible to have a static indexer in c#?

0 Answers  


Is for loop faster than foreach?

0 Answers  


can a structure used in a class if yes then how.

2 Answers   Synechron,


How can you clean up objects holding resources from within the code?

2 Answers   L&T, Wipro,


Are structs value types c#?

0 Answers  


What is decimal in c#?

0 Answers  


Can we inherit sealed class in c#?

0 Answers  


Categories