Home > DeveloperSection > Category

Latest blog on category "Exception Handling"

Throw exception in java

The java throw keyword is used to explicitly throw an exception. We can throw either checked or unchecked exception in java by throw keyword. The throw keyword is mainly used to throw custom exception.

By Kamlakar Singh posted   one year ago

Nested try block in java

One try catch block can be present in the another try’s body. This is called nesting of try catch blocks. Each time a try block does not have a catch handler for a particular exception the stack is unwound and the next try block’s catch handlers are inspected for a match.

By Kamlakar Singh posted   one year ago

Multiple catch block in java

If you have to perform different tasks at the occurrence of different Exceptions, use java multi catch block.

By Kamlakar Singh posted   one year ago

How to Handle Exception in java

Try block is used to enclose the code that might throw exception. It must be used within method. Try block must be followed by either catch or finally block.

By Kamlakar Singh posted   one year ago

Don't want to miss updates? Please click the below button!

Follow MindStick