Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Is namespace necessary in c#?

970


How do I create a multi language, multi file assembly?

1120


When Should You Call The Garbage Collector In .net?

1090


Can you inherit from a sealed class?

966


What is different about switch statements in c#?

926


What is interface c#?

916


Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?

1049


What is difference between c sharp and c#?

950


What is main thread in c#?

962


Does main have to be static c#?

1134


What is difference between const and static in c#?

1041


What is tuple in c#?

955


What is an indexer in c#?

1017


Define satellite Assembly in .NET?

1043


Contrast between an interface and abstract class?

1030