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
Can we declare a class as static?
What is stack class in java?
Explain garbage collection in java?
What are the types of strings?
What do you mean by chromounits in java8?
What is time complexity algorithm?
Why are data types important?
Differentiate storage classes on the basis of their scope?
What is the difference between replace and replace all?
Why do we need autoboxing in java?
Can you change array size in java?
What do you understand by the bean persistent property?
What are the differences between the constructors and methods?
What is Classloader in Java?
Can we sort array in java?