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

How can I check the type of an object at runtime?

1009


Explain lock, monitors, and mutex object in threading.

955


Distinguish between system.string and system.text.stringbuilder classes?

984


Can a method return multiple values in c#?

912


What is argument in c#?

985


What do u mean by delegation of authority?

986


Name the method of servicebase class?

1055


What are "class access modifiers" in C#?

1013


How do I know if executenonquery is successful c#?

902


What are instance fields in c#?

1059


What are virtual destructors?

1021


What is access specifier in c#?

1119


How to implement a singleton design pattern in c#?

956


What is wpf application in c#?

916


Define Virtual folder?

1072