What is the basically use of finally while we know it
is always executed but why?
Answer Posted / reshma
Using finally one can close the resources such as file
handler or a database connection. It ia good to maintain
the internal state of an object.
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
How to read and write image from a file ?
What is numeric function?
What is a arraylist in java?
Explain different ways of creating a thread. Which one would you prefer and why?
What is the difference between a synchronized method and a synchronized block?
What is a method signature java?
What are the two ways in which thread can be created?
What is memory leak and how does java handle it?
What does void * mean?
What is the difference between ArrayList and Vector? which one is better in Java
How do you compare values in java?
Should database connections be singleton?
What is application system?
What is matcher in java?
Which data type is class in java?