Skip to Content
OCA/OCP Java SE 7 Programmer I & II Study Guide (Exams 1Z0-803 & 1Z0-804)
book

OCA/OCP Java SE 7 Programmer I & II Study Guide (Exams 1Z0-803 & 1Z0-804)

by Kathy Sierra, Bert Bates
October 2014
Intermediate to advanced content levelIntermediate to advanced
888 pages
26h 13m
English
McGraw Hill Computing
Content preview from OCA/OCP Java SE 7 Programmer I & II Study Guide (Exams 1Z0-803 & 1Z0-804)

7

Assertions and Java 7 Exceptions

CERTIFICATION OBJECTIVE

    •    Test Invariants by Using Assertions

    •    Develop Code That Handles Multiple Exception Types in a Single catch Block

    •    Develop Code That Uses try-with-resources Statements (Including Using Classes That Implement the AutoCloseable Interface)

    image  Two-Minute Drill

Q&A Self Test

If you are coming back after having sat the OCA, congratulations! You are now ready to progress to the OCP. The assertion mechanism, added to the language with version 1.4, gives you a way to do testing and debugging checks on conditions you expect to smoke out while developing, when you don’t ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

SCJP Sun Certified Programmer for Java 6 Study Guide

SCJP Sun Certified Programmer for Java 6 Study Guide

Kathy Sierra, Bert Bates

Publisher Resources

ISBN: 9780071772006