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 are different types of classloaders?
What does singleton class mean?
Can you explain inner class.
What are the important features of Java 11 release?
Which is bigger float or double?
What is lastindexof in java?
What does this () mean in java?
What is the difference between array and array list in java?
What are jee technologies?
What is the properties class?
What does index mean in java?
What is string [] java?
How many types of threads are there in java?
How do I start learning java?
Write a function to find out longest palindrome in a given string?