Skip to content

Feb 19: Runtime Exceptions

Learning Objectives

After today's class, you should be able to:

  • throw run-time exceptions with specific detail messages.
  • Use try and catch blocks to handle run-time exceptions.
  • Discuss when throwing and catching exceptions is useful.

Lesson Outline

Demo [10 min]

  • Example code: Card, Test, and User
  • Reading keyboard input with a Scanner

Act06 [40 min]

Your To-Do List