Will finally block get executed if the 1exception had not
occurred?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is the namespace for the thread class?
Define c# i/o classes?
Why do we use interface in c#?
Explain how do you directly call a native function exported from a dll?
Can struct have constructor c#?
Is it possible to have a static indexer in c#?
Is for loop faster than foreach?
can a structure used in a class if yes then how.
How can you clean up objects holding resources from within the code?
Are structs value types c#?
What is decimal in c#?
Can we inherit sealed class in c#?