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

What is jvm? Why is java called the platform independent programming language?

648


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

618


What is string builder in java?

647


what is the purpose of using rmisecuritymanager in rmi?

668


Who is founder of java?

614






What are the 8 data types in java?

612


What does percent mean in java?

682


Can we have two methods in a class with the same name?

668


What are the differences between abstract class and interface?

601


Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example

2220


I don’t want my class to be inherited by any other class. What should I do?

676


Why is string builder not thread safe?

707


Why parameters should be passed by reference?

598


Explain the polymorphism principle?

670


what is server side caching?

1695