Exception handling syntax: Difference between revisions

Content deleted Content added
Java: more info on try-with-resources
Java: terminology correction
Line 481:
} catch (IOException ioe) {
// Deal with exception.
} // File and streamResources in the try statement are automatically closed afterwards.
finally {
// A finally blockclause can be included here as well, and will run after the resources in the try statements are closed.
}
</syntaxhighlight>