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 / 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


Please Help Members By Posting Answers For Below Questions

Why is c# good for games?

1006


What are the differences between system.string and system.text.stringbuilder classes?

1051


What is a shared assembly?

1026


What is the use of console?

945


What is difference between property and variable in c#?

922


If I return out of a try/finally in c#, does the code in the finally-clause run?

1020


Can constructor have return type c#?

1050


What is the example of predicate?

971


What is mean by c#?

1005


Does main have to be static c#?

1128


what are some characteristics of an array?

1000


Are tuples mutable c#?

990


How we can create an array with non-default values?

995


What is method in c#?

933


Is string value type c#?

961