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 continuity of a function?
What is the applet security manager, and what does it provide?
What is difference between fail-fast and fail-safe?
What are the java ide’s?
who can i handle multiple client in RMI
What are drawbacks of singleton class?
What is meant by interface?
How does the garbage collector works in java?
What is java’s garbage collected heap?
Should you use singleton pattern?
What is api in java?
What is bytecode in java ?
Is map sorted in java?
What are unchecked exceptions in java?
Which class is the superclass for every class in java programming?