tag

Home / DeveloperSection / Tag

Throw exception in java
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.

Nested try block in java
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

Multiple catch block in java
Multiple catch block in java

Hi everyone in this blog I’m explaining about the multi-catch block of the single try block. Introduction:If you have to perform different tasks at t

How to Handle Exception in java
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.