Answer Posted / dinesh
Finally clause is used to handle an exception that is not
caught by any of the previous catch statements.Finally
block can be used to handle any exception generated within
a try block.It may be added immediately after the try block
or after the last catch block.When a finally block is
defined,this is guranteed to execute,regardless of whether
or not an exception is thrown.used in house-keeping
operations like closing files and releasing system
resources.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How do you stop a thread in java?
Does google use java?
What happens if we don’t override run method ?
Explain about the performance aspects of core java?
How can the checkbox class be used to create a radio button?
What is use of static in java?
What are the access modifiers in java?
How will you add panel to a frame?
how to create constants in java?
Explain importance of finally block in java?
Explain illegalmonitorstateexception and when it will be thrown?
Why are constructors used?
What is r * in math?
What is arrays fill in java?
What is the difference between normal report & matrix report?