This course teaches developers how to deal with unexpected behavior that may occur during the execution of their applications.
Overview
Syllabus
Introduction
- Why bother with exception handling?
- What are throwables?
- What are errors?
- Error: Uncaught StackOverflowError
- What are exceptions?
- Exception: IOException
- Exception: FileNotFoundException
- Challenge: Catch and handle two exceptions
- Solution: Catch and handle two exceptions
- What are runtime exceptions?
- Runtime exception: Return NumberFormatException to user
- Challenge: Handle an ArithmeticException
- Solution: Handle an ArithmeticException
- Runtime exception: Handling of NullPointerException
- Runtime exception: Unknown runtime exception
- Challenge: Handle potential runtime exceptions
- Solution: Handle potential runtime exceptions
- Next steps with exception handling
Taught by
Cecili Reid