Friday 15 March 2013

What is the functionality of try, catch and finally blocks?

What is the functionality of try, catch and finally blocks? 
In the context of "exception handling" "try", "catch", "finally", "throw" and" throws" plays an analogous role in the java programming language.

"try": This block will throw an exception.
"catch": This block will catch an exception that is raised in the "try" block.
"finally": This block will be execute irrespective of the exception.


Blog Author: Vijay Kumar

Go to: Coding Problem Solutions


No comments: