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
Can we use a default constructor of a class even if an explicit constructor is defined?
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
What is difference between fail-fast and fail-safe?
What is the difference between reader/writer and inputstream/output stream?
What is <> used for in java?
What is constant in programming?
What is comparable and comparator interface? List their differences
design an lru cache in java?
Is java pass by value or pass by reference?
What is the functionality of the stub?
What is a vararg?
What is an argument in java?
What is the difference between scrollbar and scrollpane?
What are encapsulation, inheritance and polymorphism?
how to prepare for IT Officers Interview in Banks