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
How many types of interface are there in c#?
What is the difference between firstordefault and singleordefault?
Why does my windows application pop up a console window every time I run it?
What is extension method in c# and how to use them?
How to move to a state-related codebase?
what is a destructor?
Can firstordefault return null?
What is the difference between list and arraylist in c#?
What is difference between array and arraylist c#?
update data in an xml file which resides in solution itself, using silverlight 4.0
Explain the difference between abstract class and interface in .net?
Can extension methods access private members?
Explain briefly the difference between value type and reference type?
Why are strings in c# immutable?
what is object-oriented programming (oop) language?