Introduction
At any time when you code, you can never say there is no errors. Even the widest used operation system-Microsoft Window OS-has to update to fix the awful bugs. Yeah, it's true that we can never avoid the errors, but, we can find so many methods to prevent, to deal.
The goals for exception handling in java are to simplify the creation of large, reliable programs using less code than currently possible, and to do so with more confidence that your application doesn't have an unhandled error.
------Thinking in java -4ed Bruce Eckel [America]
Just like C++, C#, Java designer offered the predefined error-handling library--Exception Handling. All exceptions are subclass ofThrowable which is fromjava.lang package. If you check the Java API document, you will find more than one hundred classes that represent all kinds of exceptions. So, until you understand how to throw and deal with exception can you go further in java programming.