Coding with Java Exceptions

Lab Steps

lock
Connecting to the Java Web IDE
lock
Exercise 1: Exceptions
lock
Exercise 2: Exceptional

The hands-on lab is part of this learning path

Introduction to Java
8
6
6

Ready for the real environment experience?

DifficultyBeginner
Time Limit1h
Students480
Ratings
3.8/5
starstarstarstar-halfstar-border

Description

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 customized 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 customized 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 ide.java.platform.instance, 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 your local browser, access the web-based Java IDE served from the ide.java.platform.instance
  • Completing the 2 lab exercises:
    • Exercise 1 - Exceptions
    • Exercise 2 - Exceptional

Updates

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

About the Author
Students62322
Labs44
Courses104
Learning paths48

Jeremy is a Content Lead Architect and DevOps SME here at Cloud Academy where he specializes in developing DevOps technical training documentation.

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

Jeremy holds professional certifications for AWS, GCP, and Kubernetes.