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 |
Can we make main() thread as daemon?
How to call a Stored Procedure from JDBC?
What is ‘has a’’ relationship in java?
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
What is the difference between applet and application?
how can we use the servlet as standalone apllication?should we need to extend any class?
What is nested class?
explain the collection in java
What is a boolean flag in java?
Why main() method is public, static and void in java ?
What is the use of arrays tostring () in java?
Why there are some null interface in java? What does it mean?