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 java cast null?
Can a constructor be protected?
What is downcasting?
What is the purpose of sizeof operator?
What must a class do to implement an interface in java programming?
What data structures are used to perform recursion?
0 Answers Akamai Technologies,
What is the purpose of stub and skeleton?
Explain access modifiers in java.
What is the use of System class?
Is 0 true or false?
What are the differences between abstract class and interface?
What is re-factoring in software?