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
Explain About .Net remoting
What is the use of console readkey ()?
Why do we need dependency injection in c#?
What is a protected class c#?
What is the difference between int and int in c#?
Can you specify an access modifier for an enumeration?
How to assign Null value to Var?
Does c# replace c++?
What are generic types?
Can abstract class be instantiated c#?
Can we have multiple threads in one app domain?
What are boxing and unboxing?
Why is c# good for games?
What is the extension of c# file?
Explain get and set accessor properties?