O'Reilly logo

OCP Java SE 7 Programmer II Certification Guide: Prepare for the 1ZO-804 exam by Mala Gupta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Exceptions and assertions

Exam objectives covered in this chapter

What you need to know

[6.1] Use the throw statement and throws clause How to define methods that throw exceptions. The difference between the throw statement and the throws clause. The different combinations of defining overriding methods, when the overridden or overriding methods throw checked exceptions.
[6.2] Use the try statement with multi-catch and finally clauses How to use this new language feature with Java 7. How to prevent coding the same set of statements for multiple exception handlers. How to catch multiple and unrelated exceptions in a single catch block.
[6.3] Auto-close resources with a try-with-resources statement How to use a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required