Chapter 7. Exception handling

Exam objectives covered in this chapter

What you need to know

[8.3] Describe what exceptions are used for in Java. Need for the exception handlers; their advantages and disadvantages.
[8.1] Differentiate among checked exceptions, RuntimeExceptions, and Errors. Differences and similarities between checked exceptions, RuntimeExceptions, and Errors. Differences and similarities in the way these exceptions and errors are handled in code.
[8.2] Create a try-catch block and determine how exceptions alter normal program flow. How to create a try-catch-finally block. Understand the flow of code when the enclosed code throws an exception or error. How to create nested try-catch-finally blocks.

Get OCA Java SE 7 Programmer I Certification Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.