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 int reference type c#?

980


Explain About Postback

943


Differentiate between object pooling and connection pooling in c#?

996


Explain the use of SN.exe

1103


How do you pronounce c#?

910


What does do in c#?

985


What is concrete class in c#?

901


What is double c#?

949


What do you mean by “finalize” and “finally” methods in c#?

912


Explain the process of abstraction with an example?

946


Define an abstract class?

923


Why do we need delegates in c#?

971


What is use of a HashTable in .NET?

1156


Why do we use stringbuilder in c#?

926


i want o/p 011242110 in c# code.

2065