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

Define a jagged array in c#?

948


Is c# and .net same?

912


Is stringbuilder thread safe c#?

932


Is class reference type c#?

957


Is struct object oriented?

956


What is signature c#?

979


Why singleton class is sealed?

982


When do you generally use a class over a struct?

1003


Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?

1017


What is satellite assembly? And steps to create satellite assembly?

1044


How does dependency injection work c#?

992


What are the variables in c#?

986


What does string format do?

921


Can we inherit sealed class in c#?

927


What is field in c#?

965