January 2016
Intermediate to advanced
508 pages
12h 33m
English
CHAPTER 7
![]()
Exceptions and Assertions
|
Certification Objectives |
|---|
|
Use try-catch and throw statements |
|
Use catch, multi-catch, and finally clauses |
|
Use Autoclose resources with a try-with-resources statement |
|
Create custom exceptions and Auto-closeable resources |
|
Test invariants by using assertions |
In this chapter, you’ll learn about Java’s support for exception handling in detail. The OCAJP 8 exam (which is a pre-requisite for OCPJP 8 exam) covers fundamentals of exception handling as an exam topic. Hence, we assume that you are already familiar with the basic syntax used for exception handling and types of exceptions. In this chapter, you’ll learn how ...
Read now
Unlock full access