![]() |
![]() |
![]() |
![]() |
![]() |
|
try {
...
Statement with potential to throw exception
...
}
catch (exception-class name parameter) {
exception-handling statements
}
trycatch statement focused on the
FileNotFoundException or IOException class.
System.exit(0);
try statement, then
add a finally block by instantiating the following pattern:
finally {
clean-up statements
}