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 to make a non daemon thread as daemon?
Can you give few examples of final classes defined in java api?
What is console based application in java?
Explain treeset?
What does exp mean in math?
how to open and edit XML file in Weblogic???
What are the different ways of implementing thread? Which one is more advantageous?
Define jit compiler?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
What is meant by 'Class access modifiers'?
Can you explain the private protected field modifier?
What is a nonetype?
How do you sort in descending order in java using collections sort?
Can you access non static variable in static context?
What is string :: npos?