What is the basically use of finally while we know it
is always executed but why?
Answer Posted / muffy.jad@gmail.com
The finally block is used to ensure resources are recovered
regardless of any problems that may occur.
finally is important because it allows the programmer to
guarantee the release of memory regardless of what happens
in the try block
finally is necessary when you need to set something other
than memory back to its original state.
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What do you mean by ordered and sorted in collections in java?
What is singleton pattern?
Difference between association, composition and aggregation?
How can you add and remove nodes in jtree?
What is difference between iterator access and index access?
What is a hashmap used for?
What is the final class modifier?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
What is anagram in java?
Explain about the performance aspects of core java?
What is meant by data hiding/encapsulation?
What exactly is a .class file?
What is e java?
whatis Home interface and Remoteinterface? with example?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?