Checked vs Unchecked Exception in Java Example
Checked vs Unchecked Exception in Java Example Checked and Unchecked Exception is two types of Exception exist in Java. Though there is no difference in functionality and you can very achieve same thing with either checked Exception or Unchecked Exception , there is some difference on exception handling part. In this Java tutorial we will see what is checked and Unchecked Exception in Java , Examples of Checked and Unchecked Exception and most importantly we will learn when to use Checked Exception and when to use Unchecked Exception in Java and lastly we will see difference between checked and unchecked exception to understand things better. By the way this article is second in my post on Exception along with d ifference between throw and throws in Java and improved Exception handling in Java 7 with Automatic resource management ARM and multi-ca...