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 / vijay k chin
the above block will not execute as control will be unable to enter in to the filnally block. So return statement should be always in finally block not in the try block.
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
What is the difference between and xml documentation tag?
What is difference between array and collection in c#?
What is the and operator in c#?
To catch any possible exception What is the C# syntax written ?
How to sign an assembly with strong name?
How can an inner class access the members of outer class?
What is the main usage of keyword “virtual†? How does it work for a method or property?
Why do we need generics?
Explain the role of Garbage collector and its generations?
What is lazy t?
hi, is compulsory .net knowledge need for biztalk server training. if need, how far?.tell me some info abt real time instructors in hyd or other?
What is Global Assembly Cache (GAC) and what is the purpose of it? (How to make an assembly to public? Steps) How more than one version of an assembly can keep in same place?
What is console readkey ()?
What is the difference between CreateObject() and GetObject()?
Define an escape sequence, name few strings in escape sequence?