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
What is unicode in java?
What is hash table in java?
What is passing value java?
How many threads can I run java?
What are basic keywords?
How can we create objects if we make the constructor private ?
What is intern method in java?
Does apple use java?
What is meant by collection in java?
How garbage collection is done in java?
Can a class be defined inside an interface?
How do you create a null object?
How can an exception be thrown manually by a programmer?
What are three advantages of using functions?
What is threaded programming and when is it used? : Java thread