Chapter 5. Exceptions, Assertions, and Logging

Topics in This Chapter

Image 5.1 Exception Handling

Image 5.2 Assertions

Image 5.3 Logging

Image Exercises

In many programs, dealing with the unexpected can be more complex than implementing the “happy day” scenarios. Like most modern programming languages, Java has a robust exception-handling mechanism for transferring control ...

Get Core Java® for the Impatient 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.