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 types of parameters in c#?
Why we use dll in c#?
What is a base class in C#?
Is .net and c# the same?
What is difference between events and delegates?
Why we use get and set method in c#?
How does array sort work?
Why is c# used?
Explain when should you call the garbage collector in .net?
From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?
How do you create user defined data types in c#?
What is the use of convert toint32 in c#?
What are the steps to create an assembly and add it to the gac?
What is a float?
What is double c#?