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
Objects or references which of them gets garbage collected?
Is zero a natural number?
Can java object be locked down for exclusive use by a given thread?
What is flush () in java?
Explain about exception propagation?
What is abstraction in java?
Can memory leak happen java?
Difference between Preemptive scheduling vs. Time slicing?
Realized?
Is it necessary for the port addresses to be unique? Explain with reason.
Why can't we make a class private in java?
What is get () in java?
Explain the importance of join() method in thread class?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
What is the use of set in java?