Coding with Java Exceptions

The hands-on lab is part of this learning path

Introduction to Java
course-steps 8 certification 1 lab-steps 5

Lab Steps

Logging in to the Amazon Web Services Console
Connecting to the Java Web IDE
Exercise 1: Exceptions
Exercise 2: Exceptional

Ready for the real environment experience?

Max Duration1h


Lab Overview

This Lab provides you with exposure to Exceptions and Exception Handling when developing with the Java programming language. You will be required to complete the following guided coding exercises:

  • Exercise 1 - Exceptions: Implement exception handling for resource management using a try-catch-block statement
  • Exercise 2 - Exceptional: Implement a subclassed Exception class for customised exception handling

Note: Each exercise comes with the fully completed solution code when required or assistance is needed.

Lab Objectives

Upon completion of this Lab, you will be able to:

  • Write Java code that can handle runtime exceptions gracefully
  • Create customised Exception based classes

You should:

  • Be comfortable with using a browser based IDE

Lab Environment

This Lab will start with the following AWS resources provisioned automatically for you:

  • A single EC2 instance, named, which will have a public IP address attached. This instance will host a web based Java IDE (based on the Visual Code editor).

To achieve the Lab end state, you will be walked through the process of:

  • Using you local browser, access the web based Java IDE served from the
  • Completing the 2 lab exercises:
    • Exercise 1 - Exceptions
    • Exercise 2 - Exceptional


June 16th, 2018 - Optimized creation of Lab resources to reduce the time it takes to access the browser IDE by 60%

About the Author

Learning paths14

Jeremy is the DevOps Content Lead at Cloud Academy where he specializes in developing technical training documentation for DevOps.

He has a strong background in software engineering, and has been coding with various languages, frameworks, and systems for the past 20+ years. In recent times, Jeremy has been focused on DevOps, Cloud, Security, and Machine Learning.

Jeremy holds professional certifications for both the AWS and GCP cloud platforms.