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
Is an integer an object?
What are the major drawbacks of external iteration?
What is array class in java?
What are synchronized methods and synchronized statements in java programming?
Difference between abstract and concrete class ?
What is the full name of java?
List some features of the abstract class.
Why we do exception handling in java and how many types of exceptions are there?
When to use runnable interface vs thread class in java?
Do I need java for windows 10?
What do bitwise operators do?
What is currentthread()?
What does a za z0 9 mean?
Does constructor return any value?
How do you sort arrays in java?