Section outline

    • YB08_01: Reading User Input with Scanner

      Learning Goal: Understand how to use the Scanner class to read different types of user input (text and numbers) from the console.

    • YB08_02: Parsing Strings to Numbers

      Learning Goal: Learn how to convert a textual input (string) into numeric data types (int, double, etc.) using parsing methods, and understand what happens when conversion fails.

    • YB08_03: Handling Invalid Input and Input Validation

      Learning Goal: Develop strategies to deal with situations where user input is not in the expected format, to prevent program crashes and prompt the user for correct data.

    • YB08_04: Understanding Exceptions in Java

      Learning Goal: Grasp what exceptions are, why they occur, and how they affect the flow of a program.

    • YB08_05: Handling Exceptions with try...catch

      Learning Goal: Learn how to use try and catch blocks to handle exceptions and prevent program crashes, allowing your program to recover or exit gracefully when errors occur.

    • YB08_06: The finally Block and Guaranteed Cleanup

      Learning Goal: Use the finally block to execute important cleanup code regardless of whether an exception occurs or not.

    • YB08_07: Common Exception Types and Causes

      Learning Goal: Recognize some common exceptions in Java and understand the typical causes of each, so you can identify errors quickly and know how to address them.

    • YB08_08: Checked vs Unchecked Exceptions, and Throwing Exceptions

      Learning Goal: Understand the difference between checked and unchecked exceptions in Java, and learn how to declare exceptions in method signatures or throw exceptions in your own code.