what are the type of exception
How the exceptions are handled in java
Can we have try without catch block in java ?
What is RunTime exception in java?
Can we keep other statements in between try, catch and finally block?
Can we keep the statements after finally block If the control is returning from the finally block itself?
What is Re-throwing an exception in java?
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