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
Which is easier .net or java?
Write a program to reverse a number in java?
What is the major advantage of external iteration over internal iteration?
What is a local, member and a class variable?
What are the types of java?
What is the finalize method do?
Why is java not 100% pure oops?
How do you check if an arraylist is not empty?
What is predicate in java?
What is an empty class? What functionality does it offer in Java?
What is the difference between compiler and jvm?
What is thread synchronization in java?
What is the difference between a method and a procedure?
What is the difference between comparison done by equals method and == operator?
What is the use of singleton class?