What is the purpose of the finally clause?
Answers were Sorted based on User's Feedback
Answer / dhawal
the code block in finally block must be executed if
exception throws or not,except if we write system.exit(0);
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / ranganathkini
The finally clause is used to ensure that a single statement
or a set of statements are executed irrespective of whether
or not an exception is thrown/caught inside a method.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / ravikiran
finally clause is used to get executed irrespective of the
exception raising inorder to conserve the resources
| Is This Answer Correct ? | 3 Yes | 1 No |
Can we inherit the constructor in a Class?please give one example.
How the elements are organized in CardLayout?
How to perform quicksort in java?
What are the different types of inheritance in java?
I have an HashMap object, which has with key and value pair. It has 10 keys and values in that object. Now the question is I want insert new key and value in middle or any where in that list but not at the end or at the top. Is it possible or not. If yes how can we achieve this one?
what is the difference between HashMap and Hashtable
17 Answers Value Labs, Virtusa,
What’s meant by anonymous class?
How is Garbage collection done in Java?
I have a Arraylist object, it has duplecate values also. Now question is i want delete duplecate data in that objet with out using Set?
What is a methodologist?
What is the difference between jfc & wfc?
What are different data structures in java?