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
What does the “static” keyword mean?
Which containers use a flowlayout as their default layout in java programming?
Explain the scope of a variable.
What are the differences between Java 1.0 and Java 2.0?
What is singleton class in java and how can we make a class singleton?
What are aggregate functions explain with examples?
Explain the overview of UDP messaging.
Explain access modifiers in java.
What is a char in java?
Is there any difference between synchronized methods and synchronized statements?
Which is better singleton or static class?
What is anonymous inner class?
What is default exception handling in java?
What is static in java?
What is heterogeneous in java?