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 / claivan
Finally block will not return any values as it gives
error "Control cannot leave the body of a finally clause".
The finally block is useful for cleaning up any resources
allocated in the try block.
Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
Why do we use dataset in c#?
Is multilevel inheritance possible in c#?
Enlist all the components of an ado.net framework?
What is the adv of using System.Text.StringBuilder over System.String?
How do you access a constant field declared in a class?
Name the connections does microsoft sql server support?
What is the difference between interface and inheritance in c#?
What is sorted list in c#?
What is the main purpose of delegates in c#?
What is the difference between Decorator and Adapter pattern?
What is difference between write and writeline in c#?
What is action c#?
What is the use of list in c#?
What does .length do in c#?
What are circular references?