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 is generic class?
What is java full form?
Tell some latest versions in JAVA related areas?
What is method overloading and method overriding?
When do we use hashset over treeset?
What is final keyword in java? Give an example.
What is the use of conditional statement?
What are dot operator queries?
What do you understand by java virtual machine?
Can a constructor be private and how are this() and super() method used with constructor?
What is the advantage of functional interface in java 8?
How can we make a class virtual?
How do I get the | symbol on my keyboard?
What is json parser in java?
Java is pass by value or pass by reference? Explain