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

What is the diff between System.String and System.Text.StringBuilder classes?

962


Why can’t struct be used instead of class for storing entity?

904


Why we use get set in c#?

885


What are handlers in c#?

925


What is the signature of a method?

883


Can I define a type that is an alias of another type (like typedef in c++)?

955


What is the difference between “finalize” and “finally” methods in c#?

885


What you mean by delegate in c#?

848


Which is more efficient for loop or while loop?

826


What is a void c#?

864


What are the advantages of using delegates in c#?

871


What is getenumerator?

811


Explain the difference between // comments, /* */ comments and /// comments?

842


What is the difference between Static, Const and read only?

1029


What is namespace in oops?

868