What is "finally" keyword?

Answer Posted / piyush pathak

finally :
finally is a java keyword.It is a block of statement which
is executed surley after the try-catch block whether method
returns normally or throws an exception.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class??

762


What is difference between call by value and call by reference?

506


What is a lock or purpose of locks in java?

597


Explain the purpose of garbage collection in Java?

578


What is an empty string in css?

538






Do you know why doesn't the java library use a randomized version of quicksort?

556


What is meant by design patterns?

590


what is difference between equals and ==?

593


How does multithreading take place on a computer with a single cpu in java programming?

537


How java uses the string and stringbuffer classes?

518


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

694


What is double data type?

541


If system.exit (0); is written at the end of the try block, will the finally block still execute?

624


How do you add an element to an arraylist in java?

492


What is final, finally, finalize?

603