In this chapter, readers were introduced to the Java exception handling framework, learned about two kinds of exceptions – checked and unchecked (runtime) – and how to handle them using try-catch-finally and throws statements. Readers have also learned how to generate (throw) exceptions and how to create their own (custom) exceptions. The chapter concluded with the best practices of exception handling.
In the next chapter, we will talk about strings and their processing in detail, as well as input/output streams and file reading and writing techniques.