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 do you mean by compiler?
What is the java idl system?
Explain the difference between collection api and stream api in java8?
Which sort is best in java?
Why java is considered as platform independent?
What is exception hierarchy in java?
What is covariant return type?
What is a protected method?
What are recursive functions?
What does || mean in vectors?
Can an abstract class be a final class?
What are format specifiers in java?
How many ways can we create singleton class?
What is a local block?
Which variables are stored in stack?