• Online, Self-Paced
Course Description

Explore the use of try/catch blocks for exception handling in Java, including the different types of throwable classes and some best practices examples.

Learning Objectives

Java SE 11: Exception Handling

  • describe how Java handles unexpected events in a program
  • describe the conditions that lead to a Throwable class of type Error
  • describe the conditions that lead to a Throwable class of type RuntimeException using a use operator assignment to abbreviate common operations
  • recognize uncaught exceptions and identify the error in the call stack
  • use a try catch block to handle exception
  • deal with NetBeans flags that indicate exception handling errors
  • catch multiple exceptions that can be thrown from a block of code
  • explore the Java API documentation to determine what exceptions are thrown by an object's constructors or methods
  • handle exceptions thrown by methods
  • identify bad exception handling and modify code to help clarify the source of the exception
  • handle uncaught exceptions higher in the call stack
  • use the finally block to always execute when a try block exists even if an unexpected exception occurs
  • throw an exception from a method that is caught in a try/catch block by its caller

Framework Connections

The materials within this course focus on the Knowledge Skills and Abilities (KSAs) identified within the Specialty Areas listed below. Click to view Specialty Area details within the interactive National Cybersecurity Workforce Framework.