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 we write a goto or a return statement in try and catch
block will the finally block execute?

Answer Posted / om namo bagavathe vasudevaya n

what ever goto or continue statement you used in try/catch
the finally bolck must be executed

even an exception occuerd or an exception not occured in the
try block the finally block defanetly executed

but they are some excptions like system exceptions and
application exceptions.For this exceptions the finally block
may or may not excute because

SYSTEM EXCEPTIONS:this excptions occur during runtime
examples:some hardware problems

Application Exception:they also probally occur whill the
application is running

example:if we give textbox maximum size limt as 50
characters.If we enter morethan 50 characters then some
exceptions should occur

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between method and function in c#?

855


What does addressof operator do in background ?

955


How does inheritance work in c#?

1056


Which program construct must return a value?

997


Explain About Web.config

917


What is writeline in c#?

815


What is parallel foreach in c#?

915


What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?

904


Explain the serialization in .net

937


What is console write in c#?

874


Can int be null in c#?

829


What is difference between first and firstordefault?

866


In c#, what will happen if you do not explicitly provide a constructor for a class?

905


Define sealed classes in c#?

866


Define strong name in c#?

865