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


Can we have any code between try and finally blocks?



Can we have any code between try and finally blocks?..

Answer / Shiwali Gupta

Yes, you can place any number of statements (including another try-catch block) between the try and finally blocks. However, the finally block will always be executed unless the thread is terminated.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can we make main() thread as daemon?

1 Answers  


How to call a Stored Procedure from JDBC?

4 Answers   Satyam,


What is ‘has a’’ relationship in java?

1 Answers  


Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx

1 Answers  


What is the difference between applet and application?

1 Answers  


how can we use the servlet as standalone apllication?should we need to extend any class?

2 Answers   Logica CMG,


What is nested class?

1 Answers  


explain the collection in java

1 Answers   WDC,


What is a boolean flag in java?

1 Answers  


Why main() method is public, static and void in java ?

1 Answers  


What is the use of arrays tostring () in java?

1 Answers  


Why there are some null interface in java? What does it mean?

1 Answers  


Categories