Answer Posted / sandeep
While exception handling if exception is thrown programme
will abort abnormally but it can leads to some problamatic
situation..hence we have to ensure some code will always run
whtever happen..finalization does so. Some useful tasks that
we have to do ( cleaning up some resources or closing some
connection or socket etc) we can gurantee it will be done by
simply putting it in finally block.
It will run always (Unless System.exit() is not called) and
hence future problem can be handled.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
What are the 7 types of characters?
What is the difference between conversation & casting?
What does a void function return?
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
Describe the Big-O Notation.
What is the difference between Error, defect,fault, failure and mistake?
how can i use a nonsynchronized hashtable?
How does hashset works in java?
What is java lang object?
How to do encapsulation in java?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
Why arraylist is not synchronized in java example?
What is super?
Explain about data types?
does java support pointers?