Answer Posted / k.santosh kumar
Finally:
finally is block of code written in exception handling.
finally block is executed irrespective whether exception as
occured or not. it will usefull when u want to close user
defined resources like file , opened resources(db stmts).
| Is This Answer Correct ? | 25 Yes | 2 No |
Post New Answer View All Answers
Is nan false?
Write a java program to count the number of words present in a string?
What are the different tags provided in jstl?
What is the purpose of using break in each case of switch statement?
Can you give few examples of final classes defined in java api?
Define jit compiler?
Can you explain the usages of class.forname()?
Explain the reason behind ending a program with a system.exit(0)?
What are the differences between checked exception and unchecked exception?
How many bytes is string in java?
What is the default access specifier for variables and methods of a class?
Is ++ operator thread-safe in java?
Can you access the private method from outside the class?
What are streams in java 8?
Are arrays passed by reference in java?