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
Where and how can you use a private constructor?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
What is thread life cycle in java?
What is main method?
What is thread start?
What are the features of java?
Name four container classes.
What are the benefits of operations in java?
Can vector have duplicates in java?
Can we have multiple public classes in a java source file?
What are the different types of java?
What is ++ a in java?
What is the size of string?
What do you understand by the term wrapper classes?
What is break and continue statement?