What is "finally" keyword?

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


Please Help Members By Posting Answers For Below Questions

What does the string method compareto () do?

630


Where is core java used?

673


Which class contains a method: cloneable or object?

641


How do you compare characters in java?

614


What is methods in java?

629






Can we initialize the final blank variable?

693


how do I create a runnable with inheritance? : Java thread

621


What is the purpose of assert keyword used in jdk1.4.x?

658


What is arguments in java?

603


How do you find the maximum number from an array without comparing and sorting?

740


What is JFC?

803


Explain about version control?

671


Difference between arraylist and hashset in java?

639


What is super keyword explain with example?

641


What is a copy constructor in java?

668