September 2016

July 2015

Checked and Unchecked Exceptions in Java

By | 2015-07-02T09:50:25+00:00 July 2nd, 2015|Categories: java|Tags: , |

  There are two types of exceptions in Java, namely, checked exceptions and unchecked exceptions. It is also important to know what is the need of handling the exceptions in our daily development. But at present Let’s examine both these types of exceptions and then identify their differences. Checked Exceptions [...]

June 2015

  • Exception Chaining

Exception Chaining and Debugging Example

By | 2017-03-15T10:33:20+00:00 June 28th, 2015|Categories: java|Tags: |

 Exception Chaining and Propagation Exception chaining is a Java feature that allows one exception in a program to be associated with another exception. The purpose of using a chained exception is to identify the first exception that caused the second exception. Determining the underlying cause of an exception helps to [...]

Advantages of Exception Handling

By | 2018-03-20T03:21:11+00:00 June 25th, 2015|Categories: java|Tags: , |

 Advantages of Exception Handling in Java Java provides a sophisticated exception handling mechanism that enables you to detect exceptional conditions in your programs and fix the exceptions as and when they occur. Using exception handling features offers several advantages. Let’s examine these advantages in detail. Provision to Complete Program Execution: [...]

Try with Resources Example in Java

By | 2015-06-17T14:48:22+00:00 June 17th, 2015|Categories: java|Tags: , |

The Try with Resources Statement The try-with-resources statement is an expanded form of the try statement that enables Automatic Resource Management (ARM) in Java. This form of the try statement provides an efficient exception handling mechanism that automatically closes resources after they are used. The try-with-resources statement is available only [...]

May 2015

user defined exceptions in Java

By | 2015-05-09T16:53:05+00:00 May 9th, 2015|Categories: java|Tags: |

User defined exceptions in Java are used to handle the application specific error conditions. Here application specific error conditions are bound to a specific application those are not generic for all the applications. The guys implemented the Java API, provide us extreme Exception handling mechanism which were generic for all [...]

Top 10 Exceptions in Java

By | 2015-05-09T12:11:57+00:00 May 9th, 2015|Categories: java|Tags: |

When unwanted, unexpected event that disturbs the normal flow of our program is called Exception. We have discussed about what is exception and how to handling exception in Java in the previous tutorial. Now we are going to discuss about top 10 Exceptions in Java. Based on the source, who [...]

April 2015

  • bepositive

Exception handling in Java

By | 2015-04-25T11:11:13+00:00 April 24th, 2015|Categories: java|Tags: |

Exception handling in Java In the previous tutorial we have discussed about what is Exception in Java ? that gives a basic knowledge about the Exception, Error and all the stuff. In this tutorial we need to discuss some more about how to handle the Exception in Java. In Java [...]

  • Error

What is Exception in Java

By | 2015-04-29T17:31:58+00:00 April 23rd, 2015|Categories: java|Tags: |

Exception: A statement which is capable of terminating a program abruptly at runtime is known as Exception. In Java they have identified all the possible situations that are capable of terminating a program abruptly and represented them as a hierarchy of classes handled by java.lang.Throwble. The Throwble is the super [...]