If I have code like
try
{
return;
}
catch
{
return;
}
finally
{
return;
}
from which block will the value will be returned. and try
has been executed without any error.
Answer Posted / prajaktaa
In this scenario, the whole try block will get executed and
control will then be passed to finally block.
But an error come while executing finally block that Cannot
exit from finally block and execution gets stucks.
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
Is namespace a class?
Explain About Global.asax
How many static constructors are allowed in a class?
What is session variable in c#?
What does == mean in c sharp?
What is the use of private constructor in c#?
Why do we use generics in c#?
What is the function of the not null constraint?
What is the task perform by clr?
Explain clr in brief.
list the steps in code compilation in c#?
What is generic method in c#?
What is string [] args in c#?
Explain what a diffgram, and a good use for one Define diffgram? How it be used?
When should I throw an exception?