What is the purpose of the finally clause of a try-catch-finally statement?

What is the purpose of the finally clause of a try-catch-finally statement?

The finally block is the region where the code that needs to be executed under any circumstance is written. The purpose of this block is usually performing the clean up activities.

Eg: freeing the resources, etc. If the finally clause executes a return statement, it overrides a thrown exception (so the exception will not be thrown; instead the return will occur).
Purpose of Event object
Purpose of Event object - EventObjects represent events. Applications subclass this class to add event specific information...
What is an action event?
What is an action event? - An action event is a semantic event which indicates that a component-defined action occured...
Different kinds of event listeners
Different kinds of event listeners - The different kinds of event listeners are: WindowEvent, ActionEvent, PaintEvent...
Post your comment