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
Is ++ operator is thread safe in java?
What are thread priorities and importance of thread priorities in java?
Can we declare the main method of our class as private?
What is the biggest integer?
Explain the available thread states in a high-level?
Why string is not thread safe?
What value is a variable of the string type automatically initialized?
What is the purpose of stub and skeleton?
is it possible to instantiate the math class?
Which number is denoted by leading 0x or 0x in java?
What are instance variables?
Can a source file contain more than one class declaration?
How do you get length in java?
Describe string intern() methodology
Explain about version control?