There are many exceptions, but they can be put into two groups: checked exceptions and unchecked exceptions
Tutorial Details:
There are many exceptions, but they can be put into two groups: checked exceptions and unchecked exceptions. There is some controversy about which type you should use. A discussion of some of the issues can be found at Java theory and practice: The exceptions debate.
Unchecked Exceptions -- These exceptions are usually something that should have been prevented by more careful programming. For example, you should never get NullPointerException or ArrayIndexOutOfBoundsException. If you do, there is something wrong with your program, and you need to fix it. You usually don't catch unchecked exceptions. Instead, fix your program so it can't produce one of these. However, NumberFormatException is the one exception of this type that is usually caught.
Rate Tutorial: http://www.roseindia.net/java/java-tips/flow/exceptions/03exceptions.shtml
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: Exceptions - More
View Tutorial: Exceptions - More
Related
Tutorials:
|