Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Exceptions - More

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:

Java Tip 71: Use dynamic messaging in Java - JavaWorld - April 1999
Java Tip 71: Use dynamic messaging in Java - JavaWorld - April 1999
 
Easy Java/XML integration with JDOM, Part 2 - JavaWorld July 2000
Easy Java/XML integration with JDOM, Part 2 - JavaWorld July 2000
 
Retrofit existing applications with RMI - JavaWorld January 2001
Retrofit existing applications with RMI - JavaWorld January 2001
 
Exceptions: Don't get thrown for a loss
Exceptions: Don't get thrown for a loss
 
J2SE 1.4 breathes new life into the CORBA community, Part 4
J2SE 1.4 breathes new life into the CORBA community, Part 4
 
Attack of the clones
Attack of the clones
 
Beware the dangers of generic Exceptions
Beware the dangers of generic Exceptions
 
Java Development on Eclipse, Part 2
Java Development on Eclipse, Part 2 Editor's note: In part one of this two-part series of excerpts from Eclipse, author Steve Holzner provided examples of how Eclipse makes it easier to create Java code from scratch. Continuing in that vein, in this we
 
Struts best practices
Multiple options are available for solving problems with Struts. When deciding among these alternatives, the choice must be based on parameters such as the scale of work and availability of time.
 

Understanding Struts Action Class In this lesson I will show you how to use Struts Action Class and forward a jsp file through it. What is Action Class? The Action Class is part of the Model and is a wrapper around the business logic. The purpose
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.