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
Define an escape sequence, name few strings in escape sequence?
What is a satellite assembly in c#?
When was .net linq added?
What is dynamic object in c#?
What is a protected class c#?
Explain the difference between class and interface in .net?
What is literal in c#?
What do u mean by delegation?
What is meant by console programming?
What is private and shared assembly?
What is static variable in c#?
How do you access a constant field declared in a class?
Is Facebook a desktop application?
1. Describe page life cycle?
What are primitive data types in c#?