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 .net and c# the same?
How do I create a multilanguage, single-file assembly?
Is Multiple-inheritance supported by c#?
Explain what are three test cases you should go through in unit testing?
What is string in c# net?
Explain manifest & metadata in c#.
Is c# int immutable?
What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?
Are attributes inherited c#?
What is inumerable?
What is the difference between mobile application and desktop application?
Explain About web methods and its various attributes
Where do we set the min and max pool size for connection pooling?
What is the use of xmlserializer?
What are the benefits of using the aggregate method in linq?