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 data member in java?
What are methods of a class?
What is array sorting in java?
Can we execute java program without main method?
Does java support Operator Overloading?
What do you know about the garbate collector?
What is a nested list?
What is the biggest integer?
What is the use of generics? When was it added to the Java development Kit?
Is 9 a prime number?
How many types of flags are there?
Why can't we override private static methods?
What if static is removed from main method?
How will you invoke any external process in java?
What exactly is methodology?