What is 'finally' method in Exceptions?

Answer Posted / ravikiran(aptech mumbai)

finally method is used to conserve the resources before the
exception is being caught

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you escape json?

546


How to do a true java ping from windows?

622


State the main difference between c++ and java?

598


Why stringbuffer is faster than string?

556


How to sort a collection of custom Objects in Java?

608






What are the loops in java?

534


What is an empirical question?

546


Explain about main() method in java ?

592


Explain the use of javap tool.

636


What are the methods available in a class?

597


Which method must be implemented by all threads?

734


What are the two types of streams offered by java 8?

522


Can a constructor call the constructor of parent class?

543


What is static and final keyword in java?

579


How to convert string to char and vice versa?

524