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
What is a callback c#?
what is .NET framework architecture ??
What is .net c#?
Will the following code compile?
Give examples for reference types?
What does readonly mean in c#?
What is the purpose of abstract class in c#?
Is array a collection c#?
Why do canadians say zed?
What is multithreading? What are the problems that comes with multithreading and how to manage them?
How does foreach loop work in c#?
Is c# different than c++?
What are methods c#?
How to find out that the code is written as managed or un-managed code?
What does using system mean in c#?