O'Reilly logo

Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805: A Comprehensive OCPJP 7 Certification Guide by Tushar Sharma, S G Ganesh

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 11

image

Exceptions and Assertions

9781430247647_unFig11-01.jpg

In this chapter, you’ll learn about Java’s support for exception handling in detail. You’ll first learn the basic concepts behind exception handling and then you’ll learn how to throw, catch, and rethrow exceptions. You’ll also learn about the recently added language features such as try-with-resources and multi-catch statements. Following that, you’ll learn how to define your own exception classes (custom exceptions). Finally, we’ll discuss the related topic of assertions and teach you how to use them in ...

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