Java SE 11: Exception Handling

Java    |    Beginner
  • 13 videos | 58m 20s
  • Includes Assessment
  • Earns a Badge
Rating 4.6 of 148 users Rating 4.6 of 148 users (148)
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.

WHAT YOU WILL LEARN

  • 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

IN THIS COURSE

  • 3m 53s
    After completing this video, you will be able to describe how Java handles unexpected events in a program. FREE ACCESS
  • 3m 14s
    Upon completion of this video, you will be able to describe the conditions that lead to an Error class of type Throwable. FREE ACCESS
  • Locked
    3.  Throwable Classes: RuntimeException
    3m 16s
    After completing this video, you will be able to describe the conditions that lead to a RuntimeException using the assignment operator to abbreviate common operations. FREE ACCESS
  • Locked
    4.  Uncaught Exceptions and the Call Stack
    2m 45s
    After completing this video, you will be able to recognize uncaught exceptions and identify the error in the call stack. FREE ACCESS
  • Locked
    5.  Using try/catch to Handle Exceptions
    6m 53s
    In this video, you will learn how to use a try catch block to handle exceptions. FREE ACCESS
  • Locked
    6.  Explicit Exceptions in NetBeans
    4m 17s
    In this video, you will learn how to deal with NetBeans flags that indicate errors with exception handling. FREE ACCESS
  • Locked
    7.  Catching Multiple Exceptions
    7m 41s
    To catch multiple exceptions that can be thrown from a block of code, use a try-catch statement. FREE ACCESS
  • Locked
    8.  Exception in the Java API Documentation
    3m 6s
    Learn how to explore the Java API documentation to determine what exceptions are thrown by an object's constructors or methods. FREE ACCESS
  • Locked
    9.  Working with a Checked Exception
    4m 43s
    Learn how to handle exceptions thrown by methods. FREE ACCESS
  • Locked
    10.  Exceptions Best Practices
    4m 53s
    During this video, you will learn how to identify bad exception handling and modify code to help clarify the source of the exception. FREE ACCESS
  • Locked
    11.  Propagating Exceptions
    6m 10s
    In this video, learn how to handle exceptions that are not caught higher in the call stack. FREE ACCESS
  • Locked
    12.  Using Finally
    5m 25s
    Learn how to use the finally block to always execute when a try block exists, even if an unexpected exception occurs. FREE ACCESS
  • Locked
    13.  Exercise: Catching Exceptions
    2m 3s
    In this video, find out how to throw an exception from a method so that it is caught in a try/catch block by its caller. FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 3.9 of 21 users Rating 3.9 of 21 users (21)
Rating 4.5 of 526 users Rating 4.5 of 526 users (526)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.7 of 141 users Rating 4.7 of 141 users (141)
Rating 4.6 of 473 users Rating 4.6 of 473 users (473)
Rating 4.6 of 343 users Rating 4.6 of 343 users (343)