5910 Breckenridge Pkwy Suite B, Tampa, FL. 33610
(800) 272-0707

SkillSoft Explore Course

IT Professional Curricula     Software Development Solution Area     Java 2 Programming     Handling Errors with Exceptions

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.



Objectives

Handling Errors: Handling Exceptions in Java

  • 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