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
andcatch
blocks to handle run-time exceptions. - Discuss when throwing and catching exceptions is useful.
Lesson Outline¶
Demo [10 min]
- Example code:
Card
,Test
, andUser
- Reading keyboard input with a Scanner
Act06 [40 min]