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...


java Api provided try catch finally ,try catch(its ok) but why try finally and exception occured at try then how the flow is?



java Api provided try catch finally ,try catch(its ok) but why try finally and exception occured at ..

Answer / vandana singh

If you want to do a task that must be perform with every situation when exception occurs or not. that you should write the code for this in finally block. cause finally block execute in both situation exception occurs or not.

if an exception occurs then catch block statements execute after that control transfer to finally block.

if any exception not occurs than control transfer to finally block.

Is This Answer Correct ?    26 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a numeric format?

0 Answers  


Which are thin and thicK wrapper Class's in Java?

1 Answers  


What is Garbage Collection in Java

0 Answers   Wipro,


How could Java classes direct program messages to the system console, but error messages, say to a file?

2 Answers  


Are generics important java?

0 Answers  


What classes can be used to store arbitrary number of objects ?

1 Answers  


What does exp mean in math?

0 Answers  


Is void a keyword in java?

0 Answers  


What are recursive functions? Give some examples?

0 Answers   Axtria, ITC Indian Tobacco Company,


What is the difference between serializable and externalizable interfaces?

0 Answers  


what do you meant by Platform-Independent?

6 Answers   Persistent,


how do I create a runnable with inheritance? : Java thread

0 Answers  


Categories