Java Exceptions
After reading this chapter and engaging in the embedded activities and reflections, you should be able to:
- Design robust methods with Exceptions.
- Write Java code utilizing Java Exceptions.
- Extend Java's built-in exceptions to create custom exceptions.
- Differentiate when to throw exceptions and when to try/catch the exceptions.
- Write JUnit tests to check whether exceptions are thrown when expected.
- Explain the difference between checked vs. unchecked exceptions.
Starter code for this chapter
Solution code
Solution code for this chapter.