Summary

   

Java™ 2 Primer Plus
By Steven Haines, Steve Potts

Table of Contents
Chapter 9.  Exception Handling


This chapter walked you through Java's error-handling mechanism called exception handling. You learned what an exception was, how an exception is thrown, and how to catch an exception. Furthermore, you learned how to create a custom exception of your own and throw it from within your own code.

Java uses exceptions throughout its classes, so a strong foundation in exception handling is essential to using the Java programming language. Some languages facilitate exception handling, but do not enforce it. Java on the other hand forces you to use exceptions.

From this chapter you are ready to use Java's prebuilt classes, which will be discussed in the next chapter.


       
    Top
     



    Java 2 Primer Plus
    Java 2 Primer Plus
    ISBN: 0672324156
    EAN: 2147483647
    Year: 2001
    Pages: 332

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net