What is the basically use of finally while we know it
is always executed but why?
Answer Posted / srinu
In finally block writing the code of clean up code i.e
means release the database connection,close the file.The
finally block complusary be executed block when ever
exception raised or not all ways execute this finally block
Note:
The following write statement write in try or catch block
it will not execute
System.error(0);
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is polymorphism in java? What are the kinds of polymorphism?
What are void methods?
How many types of voids are there?
Give us a program to check for parenthesis matching using stack.
why not override thread to make a runnable? : Java thread
What is thread safe singleton?
Does collectionutils isempty check for null?
What two classes are used to read data only?
Is singleton set an interval?
How would you use Bubble Sort to sort the number of elements?
what is instanceof operator used in java?
What is use of super keyword in java?
What data type is string java?
Tell us something about different types of casting?
Which java ide is used the most?