About This Chapter
Java Exceptions: Chapter Summary
Individuals who use programming languages on the job need to understand the various aspects about how these languages work, and this chapter can teach you more about using Java exceptions. Each of these lessons provides an extensive discussion on each of the major types of exceptions to help you become aware of what these exceptions may do to your projects.
We design our chapters for users of all levels. Those who possess less knowledge of Java exceptions may want to start at the first lesson in the chapter and go through each lesson in order. Those who possess a better understanding of Java can scroll through the chapter menu and focus on the lessons that seem less familiar. You can go through the lessons in any order, re-examine them repeatedly, and use all of the other learning tools we offer.
At the end of this chapter, you should have developed the skills necessary to help you do the following:
- Understand exceptions in Java and identify examples
- Show the try and catch method for handling exceptions
- Determine how multiple exceptions can be caught
- Differentiate between unchecked and checked exceptions
- List the characteristics of nested exceptions
Java is a trademark of Oracle, which is not affiliated with Study.com.
1. Exceptions in Java: Definition & Example
File not found! We see exceptions every day as they are a feature of any program or programming language. In this lesson, we'll cover Java exceptions/errors, and provide some examples and methods for handling them.
2. Handling Exceptions in Java: Try & Catch
This lesson will help you learn about try and catch blocks in Java, including information about how to use try and catch blocks for exception handling.
3. Catching Multiple Exceptions in Java
Computer programs only do what humans tell them to do. If humans make mistakes, so will programs. In Java, an error is an exception. It's handy to know how to handle multiple errors at once:. That's what we'll learn in this lesson.
4. Exception Types in Java: Checked & Unchecked
Java has a class for everything, even exceptions (errors). The language has great tools for catching these errors. This lesson will cover the classes for catching errors, describe checked and unchecked exceptions, and provide working code examples.
5. Nested Exceptions in Java: Definition & Example
Using nested exceptions in Java, you can have your program track precisely where unexpected behavior occurred and follow it to its source. Learn how to create chains of exceptions from method to method.
Earning College Credit
Did you know… We have over 200 college courses that prepare you to earn credit by exam that is accepted by over 1,500 colleges and universities. You can test out of the first two years of college and save thousands off your degree. Anyone can earn credit-by-exam regardless of age or education level.
To learn more, visit our Earning Credit Page
Transferring credit to the school of your choice
Not sure what college you want to attend yet? Study.com has thousands of articles about every imaginable degree, area of study and career path that can help you find the school that's right for you.
Other chapters within the Java Programming Tutorial & Training course