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 is a static property. Give an example?
What is the keyword used to prevent a class from being inherited by another class?
What is a derived class in c#?
Why do we use overloading in c#?
Does c# support const methods, properties, or events?
Why do we need interfaces in c#?
What is singleordefault c#?
Name some string escape sequences in c#.
What is array class in c#?
What is difference between ilist and list in c#?
What is a streamwriter in c#?
Why delegates are type safe in c#?
Which is the best language for desktop application?
What is form feed and carriage return?
What is an ienumerable in c#?