Summary
In this lesson, we covered exceptions in Java from a practical point of view. First, we discussed the motivation behind exception handling and how it provides advantages over other ways of trying to handle erroneous cases. Then, we took the point of view of a newbie Java programmer with a powerful IDE and provided guidance on how to best handle and specify exceptions. Later, we dived deeper into causes of exceptions and various exception types, followed by the mechanics of exception handling using the try/catch, try/catch/finally, and try with resource blocks. We finish this discussion with a list of best practices to guide your decision process in various situations that involve exceptions.