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 circular references? How garbage collection deals with circular references.
What is the difference between console application and windows application?
How do you convert byte array to hexadecimal string, and vice versa?
Are c# generics the same as c++ templates?
How do I create a multi language, multi file assembly?
What is different between Implicit conversion and Explicit conversion in C#?
What are delegate methods?
Why do we use virtual methods in c#?
is it possible to access a remote web service Without UDDI?
Explain the difference between user control and custom control. Also, explain their use.
Which namespace is required to implement trace ?
Explain About Virtual functions and their use.
List down the different ide’s provided by microsoft for c# development.
What is _viewstart cshtml?
Is ram a heap?