How the exceptions are handled in java?
We can handle exception either of one of the below process.
try-catch-finally blocks are used to handle exception in java.
try : This block has code which can throw exception.
catch : This block is used to handle appropriate exception.
finally : This block is used to write any clean up code irrespective of whether any exception occurred or not.


core java

www.TechSearhWeb.com