Course details

Java SE 11: Exception Handling

Java SE 11: Exception Handling


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description
During this course, you will explore the use of try/catch blocks for exception handling in Java, including the different types of throwable classes and some best practices examples. You will begin with learning about what conditions a Throwable class of type Error and RuntimeExceptions. Next, learn how to recognize uncaught exceptions and identify errors in the call stack. From there you will move on to how to manage NetBeans flags to handle errors, and catch multiple exceptions that can be thrown from a block of code. Other topics include the following: how to determine which exceptions are thrown, based on an object's constructors, methods, or API documentation; how to employ a Checked Exception; how to handle exceptions thrown by methods; rectify bad exception handling; propagate Exceptions; handle uncaught exceptions that are higher in the call stack. Finally, you will learn how to execute the finally block, when a try block exists.

Expected Duration (hours)
1.0

Lesson 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
  • Course Number:
    it_sdjase_11_enus

    Expertise Level
    Beginner