May 24, 2019 in JAVA

What are Exception handling keywords in Java?

Given below are the two Exception Handling Keywords:


When a risky code is surrounded by a try block. An exception occurring in the try block is caught by a catch block. Try can be followed either by catch (or) finally (or) both. But any one of the blocks is mandatory.


This is followed by try block. Exceptions are caught here.


This is followed either by try block (or) catch block. This block gets executed regardless of an exception. So generally clean up codes are provided here.

Related questions

0 votes
May 24, 2019 in JAVA