1.

What is exceptional handling? Also, state the purpose of finally block in a trycatch statement.

Answer»

The exception handling in java is one of the powerful mechanism to handle the runtime errors so that the normal flow of the application can be maintained. 

Java finally block is a block that is used to execute important code such as closing connection, stream etc.

Java finally block is always executed whether an exception is handled or not. 

Java finally block follows try or catch block.



Discussion

No Comment Found

Related InterviewSolutions