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.