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

Can we override constructors?

0 Answers  


How do listeners work?

0 Answers  


What is the difference between throw and throws? What is the similarity between try and throw?

2 Answers  


What is the need of "creating and throwing an UserdefinedException" when the "Exception" class is already available?

4 Answers  


how to print a numbers from 1 to 100 with out using control structures?

4 Answers   IBM,


Why operator overloading is not in Java?

0 Answers  


What are use cases?

0 Answers  


can any one tell me what is advantage of encapsulation

2 Answers  


Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?

0 Answers   Amazon,


when i write string s1="java"; in one program(application) and string s2="java"; in another application on the same jvm will both objects s2,s2 will refer to same memory location where "java" is stored in string pool.

2 Answers  


what is the difference between thread and runnable types? : Java thread

0 Answers  


Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?

2 Answers   ADP,


Categories