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 |
when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???
In which JDK version event-delegation model is introduced?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
What is method overloading in JAVA? Why is it not present in C ?
0 Answers Akamai Technologies,
Differentiate between a class and an object.
What do bitwise operators do?
How we can make copy of a java object?
What is the blank final variable?
What does += mean coding?
What is the difference between throw and throws?
What is the access scope of protected access specifier?
what is the replacement method of stop() of thread