Title: Exception Basics
Course: CPS 261: Advanced Java Concepts ~ DL & MM MASTER > Section: Learning Units - Bb

Presentations and Videos

- Exception Basics lecture video (Time: 49:50)
- Exception Basics document

- Programming without Exceptions (in languages that don't have exceptions like C)
- Demonstrating the occurence of an ArithmeticException (Divide by 0), and catching it
- Demonstrating getting an exception from bad user inputs to the Scanner nextInt method. Also showing how to use the exception to recover from the problem by letting the user enter the number in again.
- Exceptions can be caught locally or globally.
- Comparing exception handling strategies: "readCarefully", or "readAtYourRisk" and catch the errors globally.