What is finally in exception handling?

Answer Posted / niranjanravi

finally is a keyword we have in Exception handling.It
creates a block of code to be executed after try or catch
has completed and before the code following the try or
catch.finally block will be executed whether or not an
exception is thrown.

Is This Answer Correct ?    18 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by constant time complexity?

807


What is t in parametric equations?

730


Does java support multiple inheritance or not?

786


Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

833


What if constructor is protected in java?

752


How do you differentiate abstract class from interface?

721


What is use of super keyword in java?

792


Which class contains a method: cloneable or object?

744


How do you check if two given string are anagrams?

726


How many days will it take to learn java?

690


How do you decide when to use arraylist and linkedlist?

734


What is java’s garbage collected heap?

712


Is it possible to use Semaphore/ Mutex in an Interrupt Handler?

738


What is a stringbuffer?

733


How do listeners work?

725