What is the purpose of the finally clause?

Answer Posted / ravikiran

finally clause is used to get executed irrespective of the
exception raising inorder to conserve the resources

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can vector have duplicates in java?

500


Explain the scope or life time of class variables or static variables?

513


Can constructor be protected in java?

499


what is meant by HQL?

639


What is the size of int in 64-bit jvm?

547






Why java is not 100% object-oriented?

822


How would you format a date in java? I.e. In the ddmmyyy format?

764


What is data type in java?

483


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

569


Can we declare the static variables and methods in an abstract class?

542


What is the different types of functions?

551


Why does java doesnt suuport unsigned values?

1790


Can you achieve runtime polymorphism by data members?

577


Is it possible to write a regular expression to check if string is a number?

538


How do you sort a string in java?

532