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
How can you use abstract class and interface?
What is singleordefault?
What is Inheritance in C#?
how to stored and retrive video in Sql server using asp.net c#......?
Define an abstract class?
Why References are stored on heap and variables on stack?
Is c# substring zero based?
Can you have an array of arrays?
What is parameter c#?
What is parse method in c#?
Is a decimal an integer?
What is the difference between finalize() and dispose()?
Can the accessibility of a type member be greater than the accessibility of its containing type?
Are string objects mutable or immutable?
What are partial types in c#?