try - catch - finally Statement
try {
// block of code that may throw an exception.
[ return; ]
}
catch (ExceptionType1 e) {
// Exception handler for type1
}
catch (ExceptionType2 e) {
// Exception handler for type2
throw(e) // re-throw e Exception
}
finally {
// clean-up code
}
Previous slide
Next slide
Back to first slide
View graphic version