Handling Errors: Handling Exceptions in Java

Java JDK 9+
  • 8 Videos | 1h 12m 40s
  • Includes Assessment
  • Earns a Badge
It is important to handle exceptions proactively in Java to ensure that the flow of a program doesn't break on the occurrence of an exception. Take this course to explore the fundamentals of handling exceptions and different constructs available in Java that allow you to do so. Delve into working with try-catch, finally, and try-with-resource blocks to handle various exceptions within your code. These blocks can be used to catch single, multiple, or categories of exceptions, clean up after your code has run, and handle exceptions related to specific Java objects, respectively. Upon completion of this course, you'll be able to implement exception handling within Java effectively.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    recognize how the throwing of exceptions influences the flow of a Java program
    implement a basic try-catch block to handle an exception in Java
    use multiple catch blocks to handle different types of exceptions in your code
  • use a finally block to clean up after code execution in a try-catch
    use the throws keyword in a method signature instead of implementing an exception handler
    implement a try-with-resource block to close resources after their use
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 18s
    UP NEXT
  • Playable
    2. 
    Getting familiar with Exceptions and Program Flow
    8m 31s
  • Locked
    3. 
    Handling Java Exceptions
    9m 49s
  • Locked
    4. 
    Tackling Multiple Exceptions in Java
    12m 47s
  • Locked
    5. 
    Using the finally Block in Java
    12m 52s
  • Locked
    6. 
    Working with the throws Keyword in Java
    10m 58s
  • Locked
    7. 
    Implementing the try-with-resource Block in Java
    10m 23s
  • Locked
    8. 
    Course Summary
    2m 3s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

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

Digital badges are yours to keep, forever.