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 the important features of Java 11 release?
What is the byte range?
What is java regex?
Explain the different forms of polymorphism?
Explain list interface?
How do you use compareto in java?
What do you understand by classes in java?
What are instance variables?
Do we have pointers in java?
What do you mean by byte code?
Enlist few advantages of inheritance?
What is the difference between access specifiers and access modifiers in java?
What is java developer skills?
How can you read content from file in java?
What is the use of inner class?