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

What is code verification?

921


What is the reason behind the invention of c#?

1041


What is the full form of GAC? Explain its uses?

938


What are the 2 types of data types available in c#?

837


Why do we use class in c#?

874


What is array and its types in c#?

872


Is array passed by reference in c#?

915


Name the connections does microsoft sql server support?

872


What are data types with examples?

924


If a method's return type is void, can you use a return keyword in the method?

842


What is firstordefault c#?

894


Difference between value and reference type. What are value types and reference types?

934


Can we write class inside a class in c#?

899


Can we have two main methods in c#?

885


What is the use of nullable types in c#?

932