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
What are the main reasons to use c# language?
What is the difference between Java and .NET garbage collectors?
What can I create with c#?
What are the Types of JIT and what is econo-JIT
What are c# i/o classes?
What is the use of static in c#?
Define collections?
What is difference between array and collection in c#?
What are primitive types in c#?
What does mean before a string in c#?
Explain clr in brief.
What is a nullreferenceexception and how do I fix it?
What is eager and lazy loading in c#?
What is hashset c#?
What is streamreader/streamwriter class?