What if we do want to catch it? -- try
The try statement indicates a block of statements that may throw exceptions
The catch clause indicates what to do with them.
There can be multiple catch clauses
Each is called an exception handler
Previous slide
Next slide
Back to first slide
View graphic version