THE OCP EXAM TOPICS COVERED IN THIS CHAPTER INCLUDE THE FOLLOWING:
You have already learned the basics of exceptions for the OCA. While reviewing these basics, we will point out the additional exception classes that you are expected to know for the OCP. We will also cover the more advanced features introduced in Java 7 for working with exceptions. We will end the chapter by introducing assertions.
A program can fail for just about any reason. Here are just a few of the possibilities for program failure that are commonly covered on the OCP exam:
As you can see, some of these are coding mistakes. Others are completely beyond your control. Your program can’t help it if the network connection goes down. What it can do is deal with the situation. ...