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 are computer functions?
Explain the pointers in Java?
What is lexicographically smallest string?
What is finally and finalize in java?
Can we have this () and super () together?
What is ascii code?
What is oop principle in java?
Is there any case when finally will not be executed?
Can you explain the final method modifier?
When should I use singleton?
What is string builder?
Can we call virtual funciton in a constructor ?
How to change the priority of thread or how to set priority of thread?
Can we create our own daemon thread?
What are daemon Threads in java?